DS Audit- number of rows per link
Posted: Tue Jul 26, 2011 7:43 am
Hi,
I am trying to create a job for auditing Datastage. One of the requirements is to get the total number of records transferred in a certain link.
I reviewed many posts regarding this issue but could not find any answer except references to the EtlStats. I do not need the whole EtlStats and it is require many modifications in order to implement it for my use.
I am trying to create a server routine to get the total rows per link using the DSGetLinkInfo function with the DSJ.LINKROWCOUNT parameter.
This function takes also the JobName and EndStageName as parameters.
DataStage has a function to return EndStage for a link:
DSGetLinkInfo(JobHandle,StageName,LinkName,DSJ.LINKSTAGE)
This routine will not be part of all my jobs. I will user it only for this specific audit job so I cannot use the DSJ.ME option.
In order to use the DSJ.LINKSTAGE function I must get the first stage of a link. Thus I found myself in dead end. I need the first stage name in order to get the end stage name of a link for the total row number.
My question is how can I get the first StageName of a link?
Thanks in advance for your help
I am trying to create a job for auditing Datastage. One of the requirements is to get the total number of records transferred in a certain link.
I reviewed many posts regarding this issue but could not find any answer except references to the EtlStats. I do not need the whole EtlStats and it is require many modifications in order to implement it for my use.
I am trying to create a server routine to get the total rows per link using the DSGetLinkInfo function with the DSJ.LINKROWCOUNT parameter.
This function takes also the JobName and EndStageName as parameters.
DataStage has a function to return EndStage for a link:
DSGetLinkInfo(JobHandle,StageName,LinkName,DSJ.LINKSTAGE)
This routine will not be part of all my jobs. I will user it only for this specific audit job so I cannot use the DSJ.ME option.
In order to use the DSJ.LINKSTAGE function I must get the first stage of a link. Thus I found myself in dead end. I need the first stage name in order to get the end stage name of a link for the total row number.
My question is how can I get the first StageName of a link?
Thanks in advance for your help