Could not find input field "sqlcode" ERROR

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
louwdata
Participant
Posts: 8
Joined: Tue Oct 20, 2009 6:15 am
Location: Midrand

Could not find input field "sqlcode" ERROR

Post by louwdata »

I've added a reject link to a SEQ file from a ODBC stage in enterprise. When I look at the columns in the output link I find a extra columns added (columns name: sqlcode)

When I run the job I get the following error

"Transformer_53: Error when checking operator: Could not find input field "sqlcode"."
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Try using a copy stage which connects the ODBC and Sequential file stage and drop the SQLCODE field.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Rob4732
Premium Member
Premium Member
Posts: 66
Joined: Mon Oct 06, 2008 5:14 pm

Post by Rob4732 »

I have this same issue when I drop a reject link off my odbc stage. I have to pass a dummy column(sqlcode) to the odbc stage. Otherwise I get the error "could not find input field sqlcode" in odbc stage. When I do this my dummy value overwrites any sqlcode that may be generated in the reject link.

I would actually like to capture the sqlcode value if possible.

Maybe this is a feature in Datastage.

Thanks
We don't see things as they are;
We see them as we are.
Rob4732
Premium Member
Premium Member
Posts: 66
Joined: Mon Oct 06, 2008 5:14 pm

Post by Rob4732 »

The copy solution also works, as mentioned by Kumar. I haven't seen a solution that allows the capture of the sqlcode though.

thx

:D
We don't see things as they are;
We see them as we are.
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

Use modify stage and keep the column sql code and write it to the file..
thanks n regards
nani
Post Reply