Executes the IBM utilities: IEBGENER, IEBCOPY, IEHLIST, IEHMOVE, and IDCAMS.
&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=UTILITY
UTILITY=program
[ DISPLAY= { YES | NO } ]
[ IEBUPDTE= { YES | NO } ]
[ SYSIN= DD_name ]
[ SYSPRINT= { KEEP | DELETE | DSN } ]
[ SYSUT1= DD_name ]
[ SYSUT2= DD_name ]
This call allows users of your product region to execute some IBM utility programs. If any SYS* data sets are required for the specified utility, then the data sets must be allocated by the user before issuing the $DSCALL call and the ddnames must be passed as parameters to $DSCALL.
Operands:
Specifies that an operating system utility is to be executed. If you are executing in an MSP or VOS environment, then the actual utility called may be different from the IBM utility name. See the Notes section on the following page.
Specifies the name of the utility to be executed.
Specifies whether to display the output on completion of the function. This operand is valid only if SYSPRINT=DSN is specified. If DISPLAY=YES is specified, then a full-screen display of the SYSPRINT data set is presented after the copy operation has completed.
Specifies whether PDS updates is performed.
Specifies a SYSIN ddname. This operand is required for all IBM utilities except IEBGENER. If no SYSIN ddname is provided for IEBGENER, then the default SYSIN file ( /* ) is used.
Specifies the type of data set to be allocated to the SYSPRINT DD for the copy operation.
Specifies the SYSUT1 ddname. This operand is required for IEHMOVE and IEBGENER.
Specifies the SYSUT2 ddname. This operand is required for IEBGENER only.
Return Codes:
Return Codes:
Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.
Return Variables:
Name of SYSPRINT file
Volume where SYSPRINT file is located
SYSPRINT ddname
Example: OPT=UTILITY
EXEC $DSCALL OPT=UTILITY UTILITY=IDCAMS DISPLAY=YES + SYSIN=SYSIN SYSUT1=DDSYS1 SYSUT2=DDSYS2
Notes:
It is the caller's responsibility to allocate the SYSUT1, SYSUT2, and SYSIN data sets prior to the OPT=UTILITY call if they are required for the utility. This is also necessary for other ddnames used on control statements in SYSIN. For example, for IEBCOPY where SYSIN is COPY INDD=DD1 OUTDD=DD2. In this case, DD1 and DD2 must be allocated prior to the OPT=UTILITY call.
The following table shows the IBM utilities that are called by the OPT=UTILITY call and the names of corresponding utilities that are used in other operating environments.
|
Utility Name |
IBM |
Fujitsu |
Hitachi |
|---|---|---|---|
|
IEBCOPY |
IEBCOPY |
JSECOPY |
JSDCOPY |
|
IEBGENER |
IEBGENER |
JSDGENER |
JSDSCOPY |
|
IEHMOVE |
IEHMOVE |
JSGMOVE |
JFSMOVE |
|
IDCAMS |
IDCAMS |
KQCAMS |
JSCVSUT |
|
IEHLIST |
IEHLIST |
? |
? |