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.
- DISP
- Space
- 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.
ConversionConversion EmoticonEmoticon