where to call a routine

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
kavuri
Premium Member
Premium Member
Posts: 161
Joined: Mon Apr 16, 2007 2:56 pm

where to call a routine

Post by kavuri »

Hi,
I had designed a job and created a server routine to find the rowscount for each link . I need to write the data to a seperate file.

My Riutine code:

$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF

hJob=DSAttachJob(DSJ.ME,DSJ.ERRFATAL)

If NOT(hJob) Then
call DSLogFatal("Job Attach Failed",JobControl)
Abort
End
Else
Ans=DSGetLinkInfo(DSJ.ME,"Transformer_21","InputArg",DSJ.LINKROWCOUNT)
End
DetachResult=DSDetachJob(hJob)


Now. From where I need to call this routine and how can get the Ans.


Any help is appreciated.

Thanks
Kavuri
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Is it not a continuation to your other post? Did you check the code there? Did you try it? That routine writes the data into a file at any path and file name you specify.

viewtopic.php?t=115230
Post Reply