use connect direct send a file to mainframe

July 12, 2011 at 04:55:07
Specs: AIX 6.1
I have a file made manually in Windows, and placed to a sharefolder to a UNIX server. After that, I need use NDM to upload this file to mainframe.
Now the issue is: at end of reach record, there's 0D 0A - CRLF for windows. NDM can remove 0A- CRLF for UNIX, but can't remove 0D. So the upload failed due to source record length greater than dataset definition.
mainframe dataset can't be changed, also the file must be created under windows, and also upload can only be done by Unix.
additionally, we have policy that can't install other 3rd party applications on unix server.
Appreciate some one can share how to get it done.

See More: use connect direct send a file to mainframe

Report •

#1
July 12, 2011 at 09:39:09
This might work: In unix, there are 3 special characters before the LF:

OD OA CR

This sed script should remove the last 3 characters and leave the LF

sed -e 's/...$//' datafile > newdatafile.txt

Now, NDM only needs to remove LF.


Report •
Related Solutions


Ask Question