Need Link Count

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
akarsh
Participant
Posts: 51
Joined: Fri May 09, 2008 4:03 am
Location: Pune

Need Link Count

Post by akarsh »

Hi,

I have below seq Job design

JobActivity -> User variable activity -> cond Check -> notification

I need to send mail if there is any reject
In user variable i am using below function
Result = DSGetLinkInfo (JobHandle, StageName, LinkName, InfoType)

DSGetLinkInfo (Job_StdRrcWklySplit.$JobName, 'Tfm_RecType', 'Lnk_WrongData', DSJ.LINKROWCOUNT)

and getting value in a variable 'rejcnt', but its giving me compilation error.

Please help how to use this function.
Thanks,
Akarsh Kapoor
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Posting your actual compilation error would be quite helpful.

In addition, you need to allocate your "JobHandle" variable with a call to DSAttachJob(), and the first parameter to cour DSGetLinkInfo() call needs to be the JobHandle.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DSGetLinkInfo() takes a job handle, not a job name, as its first argument.
Therefore you probably need a routine activity rather than a user variables activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply