./R command
Use the ./R command to define the input format of subsequent simulator statements and the ./SPA command as characters or in hexadecimal. Normal input is in character format.
Subsections:
Usage note
The format set by the ./R command applies to all subsequent simulator statements and the ./SPA command until it is reversed by another ./R command.
Format
./R [IP= CHAR | HEX]
Keyword and operands
- IP=
- Specifies the format of all subsequent
simulator statements and
commands.
- CHAR
- Indicates that data is in character format (one character or column per byte of data). The default value is IP=CHAR.
- HEX
- Indicates that data is in hexadecimal format (two characters or columns per byte of data).
Example
To get the number 12345 in packed format, the desired SPA includes the transaction code followed by the packed number. Your input stream might include:
./T TC=TRNCODE MBR=CONPGM SPA=11
./R IP=HEX 1
./SPA E3D9D5C3D6C4C54012345C5B
./R IP=CHAR 2
TRNCODE INPUT MESSAGE DATA $
where:
- 1
- is the setup for hex SPA.
- 2
- is the return to character input.
All simulator statement data, including the end-of-message indicator X'5B', must be in hex until the input format is reset to CHAR (character) by the next ./R command.