How to call DSJobReport from another subroutine??

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
tytoi
Participant
Posts: 4
Joined: Wed Apr 20, 2005 2:31 am

How to call DSJobReport from another subroutine??

Post by tytoi »

Hello,

I have an after job subroutine and I would like it to call the DSJobReport at the end of the routine.

However, I can't seem to execute the

CALL DSJobReport(abcd)

I even tried using
CALL DSU.DSJobReport(abcd) but it did not work.

And I tried defining it first. And this didn't work too
Deffun DSJobReport(abcd) calling 'DSU.DSJobReport'
CALL DSJobReport(abcd)

Any suggestions on why it is not working and how to overcome it?

Another thing, is there any other way to call 2 end of job subroutine from the job properties page?

Thanks in advance for everyone's help...
TY
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I found DSU.DSJobReport in the project, and it takes 2 parameters - but I couldn't find it described anywhere in the docs. Are you sure you don't want to call the documented DSMakeJobReport(JobHandle,ReportL,Separator) instead?

You can only call one after-job subroutine, but you can always have your subroutine call another using the CALL mechanism.
Post Reply