A non fully-qualified data set name can eliminate the prefix and is not enclosed
within quotation marks.
myrexx.exec
If you use the EXEC command to
explicitly
invoke an exec, the EXEC command
processor requires a set of single quotation marks around the argument. When
passing a non fully-qualified data set name as an argument, you need not add
additional quotation marks. The following EXEC command is issued at the READY
prompt and passes the data set name REXX.INPUT as an argument to the exec
contained in MYREXX.EXEC(TEST2). Both data sets are specified as non
fully-qualified data set names.
READY
EXEC myrexx.exec(test2) 'rexx.input' exec
When passing a fully-qualified data set name as an argument with the EXEC
command, you must include more than one set of quotation marks; one to indicate
it is a fully-qualified data set and one to indicate it is the argument to be passed.
Because TSO/E commands process two sets of single quotation marks as one and
do not recognize double quotation marks as does the language processor, you must
use three sets of single quotation marks. The following EXEC command passes
USERID.REXX.INPUT as an argument expressed as a fully-qualified data set
name.
READY
EXEC myrexx.exec(test2) 'userid.rexx.input'' exec
When passing a non fully-qualified data set name as an argument while
implicitly
invoking the exec, you need no quotation marks.
READY
test2 rexx.input
To pass a fully-qualified data set name as an argument while implicitly invoking an
exec, enclose the data set name in a single set of quotation marks.
READY
test2 'userid.rexx.input'
Using Variables in Commands
When a variable is used in a TSO/E command, the variable cannot be within
quotation marks if its value is to be substituted. Only variables outside quotation
marks are processed by the language processor. For example, the variable
name
is
assigned the data set name MYREXX.EXEC. When
name
is used in a LISTDS
command, it must remain outside the quotation marks placed around the command.
name = myrexx.exec
"LISTDS" name "STATUS"
When a variable represents a fully-qualified data set name, the name must be
enclosed in two sets of quotation marks to ensure that one set of quotation marks
remains as part of the value.
name = "'project.rel1.new'"
"LISTDS" name "STATUS"
Another way to ensure that quotation marks appear around a fully-qualified data set
name when it appears as a variable is to include them as follows:
name = project.rel1.new
"LISTDS '"name"' STATUS"
Issuing TSO/E Commands from an Exec
Chapter 8. Entering Commands from an Exec
99
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: ......