The following example displays the format by which you can invoke a CICS command with cascading options:
| result ridfldValue record | result := CICS readnext file: 'MYFILE'; ridfld: 'TIM '; keylength: 3; generic; exec. ridfldValue := result ridfld. record := result set copyStringFrom: 0 to: 80.
Each option in a CICS command can be categorized as one of the following:
In the example above, the input options are file, ridfld, keylength, and generic, which is a switch. All input messages are implemented as either a zero-argument or a one-argument message, depending on whether the command option as specified by CICS is defined to accept input data.
In the example above, the output options are ridfld and set, which are assigned to ridfldValue and record, respectively.
In the example above, the ridfld option is both an input option and an output option. The application supplies data in the option and CICS returns a modification of that data.