DSGetLinkInfo returning Warning
Posted: Thu Oct 30, 2008 1:17 am
Hi Gurus,
Am new to Datastage and trying a small case study. My requirement is like this:
I have 1 job which inserts records in a table based on some condition. Then i have a routine to check if the earlier job inserted any rows in the table or not; if yes, then proceed with next job else exit from the execution by logging some warning message.
To do so, I have the below routine code.
And am calling the above routine as
JobName;StageName;LinkName
When I tested this in DS Manager it returns me the exact value, but when i put this in a sequence and execute its returning the row count correctly, but with text "Warning: Routine DSU.GetLinkCount did not finish OK, return code = '259'" fyi - 259 is the correct number of records inserted to the table in prev. job
I am curious as to know why it is a Warning than Info or something else.
Thanks in advance for your time
~Rams
Am new to Datastage and trying a small case study. My requirement is like this:
I have 1 job which inserts records in a table based on some condition. Then i have a routine to check if the earlier job inserted any rows in the table or not; if yes, then proceed with next job else exit from the execution by logging some warning message.
To do so, I have the below routine code.
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
JobName = Field(Arg1,';',1)
StageName =Field(Arg1,';',2)
LinkName =Field(Arg1,';',3)
JobHandle = DSAttachJob (JobName, DSJ.ERRFATAL)
Ans = DSGetLinkInfo (JobHandle,StageName, LinkName, DSJ.LINKROWCOUNT)
And am calling the above routine as
JobName;StageName;LinkName
When I tested this in DS Manager it returns me the exact value, but when i put this in a sequence and execute its returning the row count correctly, but with text "Warning: Routine DSU.GetLinkCount did not finish OK, return code = '259'" fyi - 259 is the correct number of records inserted to the table in prev. job
I am curious as to know why it is a Warning than Info or something else.
Thanks in advance for your time
~Rams