Challange in using dsjob -linkinfo feature
Posted: Tue Sep 12, 2017 8:20 am
I am using one shell script that sequentially uses -lstages, -llinks and -linkinfo option of dsjob command.
The number of links returned by -llinks option are double than what actually is there in the job which is pretty obvious because one link is input for one stage and output for other one. For this I am removing the duplicate link names using my shell script.
But I am stuck on a scenario when a stage name and the link name to that stage name is duplicate in a job. Example:
OracleConnector -- Copy1 -- Link1(LinkName) -- Seq1(StageName)
--Link2(LinkName) -- Copy1 -- Link1(LinkName) -- Seq1(StageName)
In such case Link1 will appear 4 times:
With Copy1 stage,Seq1 Stage, Copy1 Stage(Row2) and Seq1 Stage(Row 2) and my shell script will reduce this set to 1. Is there a way to keep 2 rows at output and store the linkinfo result separately in Unix variable/array?
The number of links returned by -llinks option are double than what actually is there in the job which is pretty obvious because one link is input for one stage and output for other one. For this I am removing the duplicate link names using my shell script.
But I am stuck on a scenario when a stage name and the link name to that stage name is duplicate in a job. Example:
OracleConnector -- Copy1 -- Link1(LinkName) -- Seq1(StageName)
--Link2(LinkName) -- Copy1 -- Link1(LinkName) -- Seq1(StageName)
In such case Link1 will appear 4 times:
With Copy1 stage,Seq1 Stage, Copy1 Stage(Row2) and Seq1 Stage(Row 2) and my shell script will reduce this set to 1. Is there a way to keep 2 rows at output and store the linkinfo result separately in Unix variable/array?