Example 7
Operation: Enter a fully-qualified data set name as an argument in an explicitly executed REXX exec.
Known:
- The REXX exec named SWITCH is contained in a REXX library named MASTER.EXEC which is allocated to SYSPROC.
- The REXX exec
consists of:
PARSE ARG dsn1 dsn2 'RENAME' dsn1 'TEMPSAVE' 'RENAME' dsn2 dsn1 'RENAME TEMPSAVE' dsn2
If you have a user ID of USER33 and you want to switch the names of two data sets MASTER.BACKUP and USER33.GOODCOPY, you can invoke the REXX exec as follows:
Explicit form:
exec 'master.exec(switch)' '''master.backup'' goodcopy' exec
Extended implicit form:
%switch 'master.backup' goodcopy
Note that when you use the implicit form, the specification of quoted strings in the value list is made simpler because the value list itself is not a quoted string.