Mainframe jcl exec and dd statements part - 3
#MAINFRAME REFRESHER BY MUTHU JCL MOD#
NOTE If the dataset is not existing, then MOD is assumed as NEW and writes records to the dataset. MOD Appending the records to the existing record SHR The data set can be accessed by multiple users at a time.
![mainframe refresher by muthu jcl mainframe refresher by muthu jcl](https://image.slidesharecdn.com/mainframe-refresher-part-1-130308042651-phpapp02/95/mainframe-refresherpart1-23-638.jpg)
No other user can until is released by the current user. OLD Already created accessing the data set all resources are allocated exclusively. Is a physical space or file where the records will be stored.ĭISP parameter is used to identify the mode of the file. Through DSN we can refer temporary / permanent file There is no input to the application all input files treated as End of the file. We can pass any thing to another program including special character To accept the values in Cobol program, we should have equivalent accept verbs. In stream data is used to pass values from JCL to Cobol dynamically.
![mainframe refresher by muthu jcl mainframe refresher by muthu jcl](https://image.slidesharecdn.com/mainframe-refresher-part-1-130308042651-phpapp02/95/mainframe-refresherpart1-6-638.jpg)
Position parameter at DD level used with SYSIN to pass data to Cobol programs this is known as In stream data any number of records can be passed to the program. In DD statement has two kinds of parameters. It is used to identify files( input and output ) used in JCLĭD name act as a bridge b/w Cobol program and execution JCL These parameters must be declared in the linkage section. To receive PARM parameter data, Cobol program must be coded with “Procedure Division Using Parameter ” option. This parameter allows MAX(100) characters. This is a keyword parameter at activity / step level must be coded with exec operand after PGM parameter. It is keyword parameter and it is mainly used for passing the data to another program. This parameter indicates the name of program (or) procedure name This is a positional parameter which must be coded after EXEC with one blank. If you not mention any thing default it takes PROC In EXEC statement has two kinds of parameters
![mainframe refresher by muthu jcl mainframe refresher by muthu jcl](https://cdn.vdocument.in/img/1200x630/reader026/reader/2021092603/5467f4d0af79596f338b57fc/r-1.jpg)
Maximum we can code 255 EXEC statements in a JOB. EXEC Statement is used to identify program name or procedure name.