Submitting DFSMShsm commands

A DFSMShsm user with access to the system can submit the operator, storage administrator, and system programmer commands from the system console. If you want to submit these same commands from a TSO terminal, you must be an authorized user. To issue these commands from a TSO terminal, the authorized user must preface each command with the HSENDCMD command. For example, if you want to submit the HOLD MIGRATION command from a TSO terminal, you specify the following:
   HSENDCMD HOLD MIGRATION

If you are authorized by the database authority control attribute, you can use the AUTH command to add another user to the list of users with DFSMShsm authorization. If you are an authorized user, you can submit the AUTH command from a TSO terminal. If you submit a command from a TSO terminal, DFSMShsm checks your TSO identification for DFSMShsm authorization.

In systems with RACF®, a component of the Security Server for z/OS®, you can submit the operator, storage administrator, and system programmer commands for processing in batch mode if you are an authorized user. To do this, your TSO identification must be specified on the JOB statement of the MVS™ JCL (USER=userid). RACF scans the userid field and builds the control blocks DFSMShsm uses to confirm the authorization of the person who submitted the command.

If the batch submittal fails because the user ID is missing or invalid, DFSMShsm cannot issue a message to your terminal but notes the exception in the DFSMShsm log. The following example shows the MVS JCL for submitting the system programmer REPORT command to request DFSMShsm daily and volume statistics reports:
   //REPRTJOB JOB ...,USER=userid,...
   //STEP1    EXEC PGM=IKJEFT01,REGION=512K
   //SYSPRINT DD SYSOUT=A
   //SYSTSPRT DD SYSOUT=A
   //SYSTSIN  DD *
     HSENDCMD REPORT DAILY FUNCTION
     HSENDCMD REPORT VOLUME FUNCTION
   /*