CLIST
REXX
1. Allocate/concatenate to SYSPROC
2. Specify member name of PDS with or without %
1. Allocate/concatenate to SYSPROC or SYSEXEC
2. Specify member name of PDS with or without %
Interactive Communication
CLIST
REXX
Reading from the terminal
Reading from the terminal
READ, READDVAL statements
READ INPUTA, INPUTB, INPUTC
PULL, PARSE PULL, PARSE UPPER PULL, PARSE EXTERNAL
instructions
pull inputa, inputb, inputc
Writing to the terminal
Writing to the terminal
WRITE statement
WRITE Your previous entry was not valid.
SAY instruction
say 'Your previous entry was not valid.'
Passing Information
CLIST
REXX
Receiving parameters in a CLIST
Receiving arguments in an exec
PROC statement
PROC 1 DSNAME MEMBER() DISP(SHR)
CLISTs can receive positional, keyword, and
keyword value parameters.
ARG, PARSE ARG, PARSE UPPER ARG instructions
arg dsname member disp
An exec receives positional parameters. Use the PARSE ARG
and PARSE UPPER ARG instructions to receive keywords, for
example:
my.data member(member1) disp(old)
parse upper arg dsname .
parse upper arg 'MEMBER('mem')'
parse upper arg 'DISP('disp')'
Recognizing comments within a parameter
Recognizing comments within a parameter
A CLIST PROC statement recognizes a comment
within a parameter sent by the EXEC command
and ignores that comment.
An ARG instruction does not recognize a comment within a
parameter sent by the EXEC command. It is treated as part of the
argument.
Sending parameters to a CLIST
Sending arguments to an exec
EXEC command
EXEC MY.CLIST(NEW) -
'MY.DATA MEMBER(MEMBER1) DISP(OLD)'
EXEC command from TSO/E READY
'EXEC MY.EXEC(NEW)',
"'my.data member(member1) disp(old)' EXEC"
Sending information to a subprocedure
Sending information to a subroutine
Execution
Appendix C. Comparisons Between CLIST and REXX
201
Summary of Contents for TSO/E REXX
Page 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 2: ......
Page 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Page 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Page 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Page 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Page 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Page 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Page 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Page 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Page 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Page 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Page 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Page 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Page 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Page 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Page 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Page 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Page 241: ......