Error 103 on todsn

Discussion of Dovetailed Technologies Dataset Pipes tools
Post Reply
tsdjim
Posts: 64
Joined: Fri May 07, 2010 2:21 am

Error 103 on todsn

Post by tsdjim » Sun Jan 15, 2012 6:34 am

The sed edited output in the following code is written to STDOUT, but I need to send the output to the OUTPUT DD. I get an error 103. What is the correct syntax for this?


//MSGOUT DD SYSOUT=*
//STDIN DD *
todsn '//DD:OUTPUT' |
sed -e 's/fromstr/tostr/g' \
< /home/myfile/badfile.txt
/*
/*
//OUTPUT DD SYSOUT=*

todsn-client(4469)?E?: todsn(DD:OUTPUT): error: no input data available, rc=103
todsn-client(4469)?E?: server exit_code=103

dovetail
Site Admin
Posts: 1850
Joined: Thu Jul 29, 2004 12:12 pm

Re: Error 103 on todsn

Post by dovetail » Sun Jan 15, 2012 1:21 pm

todsn reads its input from its stdin.

Are you trying to use /home/myfile/badfile.txt as input to sed and output from sed into todsn?
If so, try this:

//STDIN DD *
sed -e 's/fromstr/tostr/g' < /home/myfile/badfile.txt |
todsn //DD:OUTPUT
/*
//OUTPUT DD SYSOUT=*

tsdjim
Posts: 64
Joined: Fri May 07, 2010 2:21 am

Re: Error 103 on todsn

Post by tsdjim » Mon Jan 16, 2012 5:46 am

That worked perfectly!

Thanks.

Post Reply