Running Message Advisor in batch mode


You can run the 

Message Advisor

 Server in batch mode by specifying PARM='server_name,BATCH,lines-per-page' as the parameter string to the 

Message Advisor

 Server program. lines-per-page specifies the number of lines printed on each page of 

Message Advisor

 reports. Sample JCL is located in MAQCNTL member QMR#BJCL.

When you start the Message Advisor Server in batch mode, it processes the request contained in the member specified on the SYSIN DD statement.

The request can consist of multiple command sets, and the command sets are processed as they are read. The Message Advisor Server terminates when it reaches the end of the SYSIN data set. The following figure shows sample JCL for running Message Advisor in batch mode.

Warning

Note

Message Advisor invokes the SORT utility. If you need to use required ddnames with the SORT utility, include them in the batch job JCL.

In addition, Message Advisor uses SYSPRINT for output messages. Do not customize the SORT utility to use SYSPRINT. For print jobs, use SYSOUT with its default values.

//JOBNAME    (ACCOUNT),                               <===Update Job Card
//         MSGCLASS=X,CLASS=A,USER=user name
//QMRX     EXEC PGM=QMRCTL00,REGION=64M,              <===Execution Module
//         PARM='server_name,BATCH,55'                <===Update Server Name
//STEPLIB   DD  DSN=MAQLIB,DISP=SHR                   
//QMROPTS   DD  DSN=MAQLIB,DISP=SHR                   <===Options Module
//*
//*             Use a SORTLIB DD or concatenate your sort load library to your STEPLIB.
//*             The following DD statements are used by sort for REQUEUE TYPE=EREFAIL
//*             or TYPE=REPROCESS. You can also use dynamic allocation.
//*
//SORTWK01  DD  SPACE=(CYL,10)
//SORTWK02  DD  SPACE=(CYL,10)
//SORTWK03  DD  SPACE=(CYL,10)
//*
//*                  You can also use your own sort control statements:
//*                  SORTCNTL for DFSORT
//*                  $ORTPARM for SyncSort
//*
//SYSOUT    DD  SYSOUT=*
//SYSPRINT  DD  SYSOUT=*
//SYSMDUMP  DD  DSN=your.sysdump.dataset,DISP=(,CATLG),   <===Update dsnam
//              UNIT=SYSDA,SPACE=(CYL,(XXX,XXX)),         <===Modify
//              DCB=(RECFM=FB,LRECL=4160,BLKSIZE=4160)
//SYSIN     DD  DSN=your.name.request(member),DISP=SHR    <===Command Sets
*  PLACE MESSAGE ADVISOR COMMANDS HERE, FOR EXAMPLE . . .
*      REQUEUE IMSID=IMSA
*      END
/*

Whenever the Message Advisor Server is active, a WTOR is outstanding. You can use the WTOR to obtain the status of the Message Advisor Server activity, to input Message Advisor and/or IMS commands, or to stop the Message Advisor Server.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Message Advisor for IMS 1.9