Transferring files into AIX and Windows
ACIF needs to know two things about a file to print it:
- The length of each print record
- The kind of carriage control used
ACIF processes print records. A record is a sequence of contiguous characters, typically representing a printed line or a MO:DCA-P structured field. Each record has a defined boundary or length. Some files contain information in each record that describes the record's length; these files are called variable-length files. Other files require an external definition of length; these files are called fixed-length files.
- Variable-length files
- Variable-length files can use a length prefix to indicate the length of the record in the file. The length prefix is a 2-byte binary number that prefixes each record. The record length is all the bytes in the record other than the 2-byte length prefix, but including X'5A' carriage control characters at the start of structured fields. Use the FILEFORMAT=RECORD parameter to identify files with length prefixes.
- Variable-length files can use a separator or delimiter (also called a newline character) to indicate the end of a record, instead of using a length prefix. All of the bytes up to, but not including, the delimiter are considered part of the record. For AIX or Windows, the default delimiter is X'0A'. If the file uses EBCDIC encoding, the default delimiter is X'25'. Use the FILEFORMAT=STREAM parameter to designate files that use delimiters to indicate record boundaries. NEWLINE can be used with FILEFORMAT=STREAM to specify the delimiter if the default is not correct. See FILEFORMAT for the NEWLINE values you can specify.
- If NEWLINE is not specified, ACIF reads the first 6 bytes to decide whether a file is encoded in ASCII or EBCDIC characters. If only char