$DSCALL OPT=UTILITY

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:

Return Codes:

Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.

Return Variables:

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

?

?


Copyright © 2009 CA. All rights reserved.