Use the ADDCRLF utility to prepare AFP resource files created in a Windows environment for uploading to z/OS systems. This utility adds carriage return/line feeds (CR/LF) to the files. The CR/LFs serve as record delimiters.
Note | Some AFP resources, such as AFPBAT1 output from the GenPrint program, can have carriage return/line feeds (x’0D0A’) embedded in them. On these resources, the ADDCRLF utility will fail, giving you a message stating the data has embedded carriage return/line feeds (CR/LFs). If this happens, do the file transfer with no CR/LF, and then use the AFP2MVS utility on the z/OS system. |
ADDCRLFW /I /F
Parameter |
Description |
/I |
The AFP file name with the extension TMP, which you can omit. |
/F |
Add this parameter to force the output file to be built, ignoring any embedded CR/LF errors. |
For the input file, the utility looks for the default extension TMP
. For the output file, the utility will assign the extension IBM
.
PSF software on the z/OS is record-oriented software. It needs each structured field record in an AFP resource such as font, formdef, overlay, page segment, and so on, in discrete records.
PSF2 on a Windows system has no concept of records. The entire datastream is a single record. If you use the system in a Windows environment to create AFP resources, and you want to transfer them to z/OS, you must insert CR/LFs at the end of each structured field and then use the CR/LF keyword on the file upload command.
ADDCRLF /I=afpfile
This creates a file called AFPFILE.IBM. The input file must have the extension TMP
. You do not have to enter the extension if you enter the command as shown above. The output file will have the same file name, but with the IBM
extension.
© Copyright 2012, Oracle and/or its affiliates. All rights reserved. Legal notices.