wrapper

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ashik_baba
Participant
Posts: 7
Joined: Mon Aug 21, 2006 6:41 am

wrapper

Post by ashik_baba »

hi all,
i am trying to built my own wrapper.im input has two files and the columns are 'ordernumber' 'code' and i have take 'ordernumber' as key based on the i want to sort the data .and my output is one file.the UNIX command i am using is (sort -k 2 )where as k is the key column and i am considering only the values from the 2nd cheracter.when i am running the job i am getting the error message.
main_program: APT_PipeConnection: new connection 1 requests file descriptor -1, which was also requested by connection 0

Thanks in advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The two inputs are port 0 and port 1. For whatever reason you appear to have specified the same data source for each.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

Just thought I'd tag onto this old post that we also encountered this error because there appears to be a feature (bug?) in 7.0 where the '.op' file generated for a wrapped stage appears to be broken ...

Code: Select all

echo "{
wrapped,
kind = parallel,
usage = \"qascleankey.op \",
command = \"/home/dsadm/project/wrapped/qascleankey\",
port = {fd = 0, input = 0, schema = \"...\"},
port = {fd = 0, output = 0, schema = \"...\"}
}"
Changing the following line manually (not using the generate button) fixed our problem (second 'fd = 0' entry to 1) :

Code: Select all

port = {fd = 0, input = 0, schema = \"...\"},
port = {fd = 1, output = 0, schema = \"...\"}
HTH,
J.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Post Reply