Page 1 of 1

Error 103 on todsn

Posted: Sun Jan 15, 2012 6:34 am
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

Re: Error 103 on todsn

Posted: Sun Jan 15, 2012 1:21 pm
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=*

Re: Error 103 on todsn

Posted: Mon Jan 16, 2012 5:46 am
by tsdjim
That worked perfectly!

Thanks.