Page 1 of 1

where to call a routine

Posted: Tue Dec 18, 2007 9:13 pm
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

Posted: Tue Dec 18, 2007 11:35 pm
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