Error 103 on todsn

Discussion of the Co:Z Toolkit Dataset Pipes utilities
Post Reply
tsdjim
Posts: 64
Joined: Fri May 07, 2010 2:21 am

Error 103 on todsn

Post by tsdjim »

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: 2006
Joined: Thu Jul 29, 2004 12:12 pm

Re: Error 103 on todsn

Post by dovetail »

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 »

That worked perfectly!

Thanks.
Post Reply