updating in wuery in Orcae stage

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
samad40
Participant
Posts: 11
Joined: Wed Jun 13, 2007 2:45 am
Location: chennai

updating in wuery in Orcae stage

Post by samad40 »

hi,

i have a reuirement,

seqfile---copy--- oracle ---trandormer--- seqfile

the process is like this
This job updates the PROCESS_STAT_CODE, SUBMT_OPTN_ON_OPTN_RQST_DTS and SUBMIT_OPTN_OPTN_JOB_RUN SAKEY
in GMCMV24_OPTN_ON_OPTN_RQST table for the records which are processed.

the query is like

UPDATE
GMCMV24_PT_OPT_OPT_RQST
SET
PROCESS_STAT_CODE= 'S',
RQST_JOB_RUN_SAKEY = #JobRunID#,
UDATE DTS = GTSU_DATETIME_UTILITIES_PA.gfstu_to_gmt_fn,
UPADTE_USERID=USER,
SUBMIT_OPTN_ON_RQST_DTS= GTSU_DATETIME_UTILITIES_PA.gfstu_fn
WHERE
OPT_OPTN_RQST_ID = ORCHSTARTE REQUEST_ID;

fatal error is comming like this

main_program: Could not check all operators because of previous error(s)
TRNS_CHK_RJT_RECS: Error when checking operator: Could not find input field "OPTN_OPTN_RQST_ID".
Error when checking operator: Could not find input field "REQUEST_ID".
Error when checking operator: Could not find input field "sqlcode"
Last edited by samad40 on Fri Jun 20, 2008 12:27 am, edited 1 time in total.
samad
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

samad, DSXchange is a site run by volunteers for free. And people here make sure that they do *not* answer urgent questions. I see that this is your first post, Welcome to DSXchange :D But don't put any "urgent" requests in the future.

Have you pasted the exact query used in the job? 'cause if you have there are lots of problems with the query:

UPDATE
GMCMV24_PT_OPT_OPT_RQST
SET
PROCESS_STAT_CODE= 'S',
RQST_JOB_RUN_SAKEY = #JobRunID#,
UDATE DTS = GTSU_DATETIME_UTILITIES_PA.gfstu_to_gmt_fn,
UPADTE_USERID=USER,
SUBMIT_OPTN_ON_RQST_DTS= GTSU_DATETIME_UTILITIES_PA.gfstu_fn
WHERE
OPT_OPTN_RQST_ID = ORCHSTARTE REQUEST_ID;


all the columns from input should be preceded with an "ORCHESTRATE." (note the spelling) So the highlighted part of your query should be replaced with:

UDATE DTS = ORCHESTRATE.GFSTU_TO_GMT_FN,
UPADTE_USERID=ORCHESTRATE.USER,
SUBMIT_OPTN_ON_RQST_DTS= ORCHESTRATE.GFSTU_FN
WHERE
OPT_OPTN_RQST_ID = ORCHESTRATE.REQUEST_ID
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please also endeavour to choose meaningful subject lines, to assist future searchers.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply