How does REVIEW decide the record length to use for UNIX files?
(Updated for R36.5) A: Files selected with an ‘A’ selection code are deemed to be ASCII text files with a maximum record length of 256. For the ‘S’ and ‘/’ selection codes all files with a size that is a multiple of 4096 are treated as having fixed-length 4096-byte records. Files with a size that is a multiple of 80 have the first 80 bytes examined for code points outside the x’40’ to x’FE’ range other than x’15’. If any such code point is found then the file is treated as having fixed-length 80-byte records, otherwise the file is treated as an EBCDIC text file with a maximum record length of 80. Other files are considered to be EBCDIC text files with a maximum record length of 256. The term “EBCDIC text file” means that an EBCDIC NL character (x’15’) will trigger a new line. The term “ASCII text file” means that an ASCII LF character (x’0A’) or an ASCII CRLF string (x’0D0A’) will trigger a new line.