Previous Topic: Using the Batch InterfaceNext Topic: EXECBAT Member—Start the Batch Interface


How to Use the Batch Interface

The following example illustrates the use of the batch interface.

In this example, the simulated screen size is 80 columns by 66 rows. The screen line size is 80 characters because RECFM contains the ASA specification.

//EXECBAT   JOB ,pgmrname,USER=userid
 //STEP0001  EXEC PGM=GSVXBAT,PARM='LINECNT=66,SHOWINP=NO'
 //STEPLIB    DD  DISP=SHR,DSN=SYSVIEW.CNM4BLOD
 //SYSPRINT DD  SYSOUT=*
 //SYSIN       DD  *
 *
 *   Sample input
 *   User ID for batch session is taken from JOB card
 * 
 COMMAND=(VTOC MVSRES)      1. Issue VTOC command
 DATA=(1,DSI),              2. Select volume information line and...       X
 DATA=(2,DSI),DATA=(3,DSI)  3. Select first two data sets
 COMMAND=RETURN             4. Return for volume DSINFO screen
 COMMAND=RETURN             5. Return for first data set DSINFO screen 
 COMMAND=RETURN             6. Return for second data set DSINFO screen
 SCROLL                     7. Scroll through all of the data sets
 COMMAND=END                8. End the batch session
 /* 

The following describes each line of the control card:

  1. Issues the VTOC command for volume MVSRES.
  2. Places the DSI line command in the command field for the first data set on the VTOC display. Because this card has a nonblank character in column 72, processing proceeds to the next card.
  3. Places the DSI line command in the command field for the second and third data sets on the VTOC display. Because there are no COMMAND keywords and the card is not continued, the response is terminated with this card. DSINFO is displayed for the first data set.
  4. The DSINFO display for the first data set is ended and DSINFO is issued for the second data set.
  5. The DSINFO display for the second data set is ended and DSINFO is issued for the third data set.
  6. The DSINFO display for the third data set is ended, returning back to the VTOC display.
  7. Issues multiple DOWN commands until all of the data sets are displayed.
  8. Ends the CA SYSVIEW batch session.