Hi everyone,
I work on a job server (BASIC code) to scan all jobs in a projectto get information about datastage design.
For each job i want to know names of stages presents, names of the links, etc..
I'm really close to get all information i want but i have a trouble with link.
I don't know how to know if a link is a reject.
The function DSGetLinkInfo with DSJ.LINKDESC give the same value for a output link or reject link.
Do you have an idea?
Know link type in a job per stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
@kandyshandy: My goal is to control the naming convention precisely. ![Wink ;)](./images/smilies/icon_wink.gif)
I forgot to write that i used the method "listlinktype = DSGetStageInfo (hJob, stagename, DSJ.LINKTYPES)" first.
I can only deduce this:
linktype value = 1: input stream
linktype value = 2: reference stream
linktype value = 3: output stream or reject stream
I also made a test with this code "linkdesc = DSGetLinkInfo(hJob, stagename, linkname, DSJ.LINKDESC)".
There is no detailed information given by IBM's documentation and neither in the JOCONTROL.H file.![Sad :(](./images/smilies/icon_sad.gif)
So i did an another test with the method "Call DSGetLinkMetaData(linksmdata ,jobname, stagename, linkname)".
I find that when no column is given by the array result it could be a reject link but i can't test with RCP mode in my environment to prove this observation.
It could be that ? (linktype=3 and no column description in array result a DSGetLinkMetaData)
![Wink ;)](./images/smilies/icon_wink.gif)
I forgot to write that i used the method "listlinktype = DSGetStageInfo (hJob, stagename, DSJ.LINKTYPES)" first.
I can only deduce this:
linktype value = 1: input stream
linktype value = 2: reference stream
linktype value = 3: output stream or reject stream
I also made a test with this code "linkdesc = DSGetLinkInfo(hJob, stagename, linkname, DSJ.LINKDESC)".
There is no detailed information given by IBM's documentation and neither in the JOCONTROL.H file.
![Sad :(](./images/smilies/icon_sad.gif)
So i did an another test with the method "Call DSGetLinkMetaData(linksmdata ,jobname, stagename, linkname)".
I find that when no column is given by the array result it could be a reject link but i can't test with RCP mode in my environment to prove this observation.
It could be that ? (linktype=3 and no column description in array result a DSGetLinkMetaData)
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
Can't you disable RCP at your job level?Obiwon666 wrote:I find that when no column is given by the array result it could be a reject link but i can't test with RCP mode in my environment to prove this observation.
It could be that ? (linktype=3 and no column description in array result a DSGetLinkMetaData)
Kandy
_________________
Try and Try again…You will succeed atlast!!
_________________
Try and Try again…You will succeed atlast!!
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore