When transferring a file from XCOM for z/OS to another platform it may happen that and the filename does not fit into the line limitation of 80 bytes in SYSIN01. Take special care if the file name also contains blanks. So let's assume the name of the destination file for a transfer is:
C:\Documents and Settings\James D Smith\My Documents\This is a very long file name.txt
You can use the continuation character '+' to span the name over more than one line. Make sure that there is no blank before the '+'-sign and that the next line starts in columns 2 through 16. If you use only one pair of quotes the embedded blanks in the filename will cause a syntax error when parsing the line.
FILE="C:\Documents and Settings\+
James D Smith\+
This is a very long file name.txt"
The Joblog will contain a message like this:
XCOMM0106E FILE= END QUOTE MISSING OR INVALID LENGTH
XCOMM0105E James D Sm... DATA INVALID
XCOMM0105E My Documen... DATA INVALID
XCOMM0105E This is a... DATA INVALID
XCOMM0116E REQUEST FAILED DUE TO ERRORS
So be sure to put every line into double quotes. Here is an example:
FILE="C:\Documents and Settings\James D Smith\"+
"My Documents\This is a very long file name.txt"
This example will work, too:
FILE="C:\Documents and Settings\"+
"James D Smith\"+
"This is a very long file name.txt"
Thank you for posting this TT. If you can, please remember to tag these with "tips" and "tuesday tips" (no underscore) to help make them easier to find!
Nice tip, I am famliar with it, however, this tip is written very well and I intend to keep it handy!