Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

Job control language statements for PRSSELEC


To execute the PRSSELEC utility, use the following JCL.

PRSSELEC JCL example provides an example of PRSSELEC JCL.

Statement

Use

JOB

Initiates the job

EXEC

Specifies the program name of the data handling utility (PRSSELEC), the region size required, and the necessary parameter information (PARM=)

STEPLIB DD

Defines the program library (IMF.LOAD) that contains PRSSELEC program load module

SELPRINT DD

Defines the message data set that is used to document syntax errors found in selection statements

The data set contains the Selection Function Diagnostic Messages report.

SYSPRINT DD

Defines the print output data set used to display the

  • Records selected for printing
  • PRSSELEC Processing Diagnostics report, which contains parameter error and processing diagnostic messages
  • Selection, print, and extract file output counts

INPUT DD

Defines the IRUF used as input to the utility

EXTRACT DD

Defines the file to contain records extracted from the input IRUF

SYSIN DD

Defines the data set that contains the PRSSELEC selection keyword statements

PRSSELEC JCL example

//JOBNAME  JOB ...........
//STEP1    EXEC PGM=PRSSELEC,REGION=2048K,    
//              PARM='PRTSEL,WRITE'           
//STEPLIB  DD   DSN=IMF.LOAD,DISP=SHR         
//SELPRINT DD   SYSOUT=A                      
//SYSPRINT DD   SYSOUT=A                      
//INPUT    DD   DSN=IRUF.MONTHS,DISP=SHR      
//EXTRACT  DD   DSN=TEMP.IRUF,DISP=(NEW,KEEP),
//              UNIT=SYSDA,SPACE=(CYL,(4,1)),
//              DCB=(RECFM=VBS,LRECL=30970,   
//              BLKSIZE=30974)                
//SYSIN    DD   *                             
   SYSID=A                                    
   TERMQUAL=PERS                              
   DBDNAME=PERSMAST                           
/*

In the sample JCL shown, the input is a monthly IRUF (IRUF.MONTHS). The utility execution options (PARM parameter in the EXEC statement) are to print selected records (PRTSEL) and to create an extract file of the selected records (WRITE). The records were created on System A (SYSID=A). The input is from a logical terminal name that has the first four characters of PERS (TERMQUAL=PERS). The database being accessed is PERSMAST (DBDNAME=PERSMAST).



 

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

MainView for IMS Offline 5.4