JCL 4 - Keyword parameters at DD level

DD parameters:
  1. DISP
  2. Space
  3. DCB
DD PARAMETERS:

a) * : positional parameter at DD level used only with SYSIN. To pass data to the cobol programs ,this is known as instream data any number of records can be passed to the Pgm.

b) DSN : keyword parameter at DD level.
Ex:-
JCL:-
//JOB12345      JOB (KUMACT), “REPORT1”, CLASS=A, MSGCLASS=A,MSGLEVEL=(1,1) ,
//                              PRTY=4,NOTIFY=&SYSUID       
//ACTVTY1      EXEC   PGM=REPORT
// INPUT              DD          DSN= TSO.REPORT.INPUT, unit =disk/tape
// OUTPUT          DD          DSN=TSO.REPORT.OUPUT, unit =disk/tape

COBOL:
select REPT-INFILE assign to INPUT
select REPT-OUTFILE assign to OUTPUT
 
c) DISP: used to  identify the mode of the file
DISP :- ( Status, normal, abnormal)

For More details click on below Video.


Previous
Next Post »