HELP: Write date field as ASCII/EBCDIC digit string [default] TYPE: OBJECT SYNTAX: STR(PATTERN='str',CHRSET=num/NONE/SYSTEM/ASCII/UCS1/UTF8/EBCDIC/UCS2BE/UTF16BE/UCS2LE/UTF16LE/UCS4BE/UTF32BE/UCS4LE/UTF32LE/LOCAL,PAD=num,WIDTH=num)
Writes the date field as an ASCII or EBCDIC digit string.
The optional PATTERN parameter specifies the output byte layout (e.g. PATTERN='YYYYMMDD'). When omitted, the output format mirrors the input side PATTERN so that round-trips are lossless.
The CCS parameter specifies the target character set. When omitted, the output is written as an ASCII string (UTF-8 compatible). A CCS value such as 'IBM-1047' causes the output string to be converted from UTF-8 to the specified code page via ICV before writing, producing an EBCDIC-encoded date string suitable for mainframe consumption.
PAD specifies an ASCII pad character code (e.g. 0x20 for space) that is appended to the output string when it is shorter than WIDTH characters.
WIDTH specifies the target field width. When 0 (default), no padding is applied and the output string length is determined solely by the PATTERN token string.
NUMBER: CHRSET=num/NONE/SYSTEM/ASCII/UCS1/UTF8/EBCDIC/UCS2BE/UTF16BE/UCS2LE/UTF16LE/UCS4BE/UTF32BE/UCS4LE/UTF32LE/LOCAL - Character set of the output byte field [SYSTEM]
NONE - No character set definedSYSTEM - SYSTEM (environment specific (on mainframe EBCDIC else ASCII))ASCII - ASCII (mainly used in the for open system)UCS1 - UCS-1 (for text formatting identical to ASCII < 64k)UTF8 - UTF-8 (for text formatting identical to ASCII < 2M)EBCDIC - EBCDIC (mainly used on IBM mainframe)UCS2BE - UCS-2 Big Endian (multibyte character set < 64k)UTF16BE - UTF-16 Big Endian (multibyte character set < 2M)UCS2LE - UCS-2 Little Endian (multibyte character set < 64k)UTF16LE - UTF-16 Little Endian (multibyte character set < 2M)UCS4BE - UCS-4 Big Endian (multibyte character set < 64k)UTF32BE - UTF-32 Big Endian (multibyte character set < 2M)UCS4LE - UCS-4 Little Endian (multibyte character set < 64k)UTF32LE - UTF-32 Little Endian (multibyte character set < 2M)LOCAL - LOCAL (platform specific (on mainframe EBCDIC else ASCII))NUMBER: PAD=num - Pad character (ASCII code) appended to reach WIDTH [none]NUMBER: WIDTH=num - Output field width; padded with PAD when shorter [0=no padding]