REC

Synopsis

HELP:   Format data in several wrapped record elements (all meta data lost)
TYPE:   OBJECT
SYNTAX: REC(METHOD=WRP/LEN/L4I/L4X/B4I/B4X/S4I/S4X/HLI/HLX/HBI/HBX/HSI/HSX/DLM/DLN/ALL,RECLEN=num,RECDLM='bin'/CR-ASCII/LF-ASCII/NL-ASCII/CRLF-ASCII/CR-EBCDIC/LF-EBCDIC/NL-EBCDIC/CRLF-EBCDIC/CR-UTF08/LF-UTF08/NL-UTF08/CRLF-UTF08/CR-UTF16BE/LF-UTF16BE/NL-UTF16BE/CRLF-UTF16BE/CR-UTF16LE/LF-UTF16LE/NL-UTF16LE/CRLF-UTF16LE/CR-UTF32BE/LF-UTF32BE/NL-UTF32BE/CRLF-UTF32BE/CR-UTF32LE/LF-UTF32LE/NL-UTF32LE/CRLF-UTF32LE,RSTDAT=RECORD/ERROR/IGNORE,SUPPAd,PRSATR=ASA/MCC/REL/RELASA/RELMCC,WRPERR,BUFSIZ=num,INICNT=num)

Description

By default (i.e. no method provided), the object "format record" formats data blocks to records by slicing the block into records of the provided record length if none of the valid 4 byte length formats or the defined binary delimiter is detected. If the data is already organized as records, then the data is re-wrapped. You can enforce an error to prevent the default wrapping if no record length information is found.

If the method DLM is used, then a delimiter must be specified. When specifying a binary delimiter without a method or method DLN or ALL, then the detector will verify if the binary delimiter is present in the data. If you use archive formats where the file attributes can be stored, the binary delimiter will be set automatically

If you have written attributes (see FMT.BLK()) in front of the records, you can parse these attributes. If you use archive formats where the file attributes can be stored, the PRSATR selection will be set to the right method automatically.

Arguments