SlideShare a Scribd company logo
1 of 15
MAINFRAME REFRESHER
JCL PART-3
( EXEC AND DD STATEMENTS )
JANAKI RAM SOMISETTY
MAINFRAMES REFRESHER PART-3 JCL
 EXEC STATEMENT(EXEC)
 EXEC Statement is used to identify program name or
procedure name.
 Maximum we can code 255 EXEC statements in a JOB.
 In EXEC statement has two kinds of parameters
 Position parameter Keyword parameter
 PGM TIME , COND
 PROC REGION , PARM
 If you not mention any thing default it takes PROC
MAINFRAMES REFRESHER PART-3 JCL
 PGM
 This is a positional parameter which must be coded after
EXEC with one blank. This parameter indicates the name of
program (or) procedure name
 Syntax
 //STEPNAME EXEC PGM=REPORT (OR)
PROC = PROCEDURE NAME
MAINFRAMES REFRESHER PART-3 JCL
 PARM
 It is keyword parameter and it is mainly used for passing the
data to another program.
 To pass input to Application program
 To invoke complier option.
 This is a keyword parameter at activity / step level must be
coded with exec operand after PGM parameter.
 This parameter allows MAX(100) characters.
 To receive PARM parameter data, Cobol program must be
coded with “Procedure Division Using Parameter ” option.
 These parameters must be declared in the linkage section.
MAINFRAMES REFRESHER PART-3 JCL
 DATA DESCRIPTOR STATEMENT ( DD STMT)
 It is used to identify files( input and output ) used in JCL
 DD name act as a bridge b/w Cobol program and execution
JCL
 In DD statement has two kinds of parameters.
 Position Parameter Keyword Parameter
 * DSN,DISP
 DATA SPACE,UNIT
 DUMMY DCB,VOLUME
MAINFRAMES REFRESHER PART-3 JCL
 *
 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 stream data is used to pass values from JCL to Cobol
dynamically.
 To accept the values in Cobol program, we should have
equivalent accept verbs.
 Syntax
//SYSIN DD * ------- Entry of in stream data
100
200
/* ---------------------- End of in stream data
INPUT
MAINFRAMES REFRESHER PART-3 JCL
 DATA
 We can pass any thing to another program including special
character
 Syntax
//SYSIN DD DATA
100
/*
200
/*
INPUT
MAINFRAMES REFRESHER PART-3 JCL
 DUMMY
 All files are treated as End of the file
 Syntax
//SYSIN DD DUMMY
NOTE
There is no input to the application all input files treated as
End of the file.
MAINFRAMES REFRESHER PART-3 JCL
 DSN
 Through DSN we can refer temporary / permanent file
 Is a physical space or file where the records will be stored.
o DISP
• DISP parameter is used to identify the mode of the file.
• DISP= ( STATUS, NORMAL , ABNORMAL )
TERMINATION TERMINATION
NEW DELETE DELETE
OLD KEEP KEEP
SHR CATLG CATLG
MOD UNCATLG UNCATLG
MAINFRAMES REFRESHER PART-3 JCL
 NEW Creating the data set first time
 OLD Already created accessing the data set all resources
are allocated exclusively . No other user can until is
released by the current user. If dataset is not
existing this creates.
 SHR The data set can be accessed by multiple users at a
time.
 MOD Appending the records to the existing record
NOTE If the dataset is not existing , then MOD is
assumed as NEW and writes records to the dataset.
MAINFRAMES REFRESHER PART-3 JCL
 NORMAL All the parameters of normal are active when
the JOB executes successfully.
 DELETE Dataset is deleted when job creates successfully
 KEEP It keeps dataset in system. But it doesn’t create
any reference in CATLG
 CATLG When job terminates successfully it is going to
create an index by a referencing name specified
in volume label. This keeps data set.
 UNCATLG I resides in system, but it deletes volume label
name from CATLG like keep.
 PASS To pass dataset to subsequence steps.
MAINFRAMES REFRESHER PART-3 JCL
 ABNORMAL
 It indicates the unsuccessful execution and allowed
parameters are similar to normal termination expect pass.
 Default
DISP = (NEW,DELETE,DELETE)
MAINFRAMES REFRESHER PART-3 JCL
 SPACE
 This is a keyword parameter in DD Operand can be coded
anywhere after DD Operand .
 This is used to request the storage for the dataset as per the
requirement .
 The storage space is divided in to primary and secondary for
effective storage space utilization.
 EX
Space = (TRK,(5,3,0),RLSE)
PRIMARY
SECONDARY
DIRECTORY BLOCKSTORAGE DEVICE
MAINFRAMES REFRESHER PART-3 JCL
 CYLINDERS.BLOCKS,TRACKS AND RECORDS
Different types of STORAGES
o PRIMARY
o This is primary which is allocated to the data set while
creating.
o SECONDARY
o This is additional memory allocated in addition to the
primary memory.
o RLSE
o Is used to release the unused space when PGM
terminates successfully / unsuccessfully.
MAINFRAMES REFRESHER PART-3 JCL
 DATA CONTROL BLOCKS
 This contains the following parameters used to specify file
attributes.
 EX
DCB=(LRECL=100,BLKSIZE=1000,RECFM=FB,DSORG=PS)
Logical record f/fb = fixed length
Length = 100 v/vb= variable length (PO/PS)
Fixed/variable length f/fb  LRECL=100
v/vb LRECL=Maxlength+4
Block size(LRECL * 10)

More Related Content

What's hot

Jcl interview questions
Jcl interview questionsJcl interview questions
Jcl interview questionsganjigirish
 
Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1vishwas17
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM
 
JCL FOR FRESHERS
JCL FOR FRESHERSJCL FOR FRESHERS
JCL FOR FRESHERSNirmal Pati
 
DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1ReKruiTIn.com
 
Introduction of ISPF
Introduction of ISPFIntroduction of ISPF
Introduction of ISPFAnil Bharti
 
COBOL FOR FRESHER
COBOL FOR FRESHERCOBOL FOR FRESHER
COBOL FOR FRESHERNirmal Pati
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilitieskapa rohit
 
Mainframe IPL Process.pdf
Mainframe IPL Process.pdfMainframe IPL Process.pdf
Mainframe IPL Process.pdfssuseraa0df4
 
JCL UTILITIES IEBCOPY
JCL UTILITIES IEBCOPYJCL UTILITIES IEBCOPY
JCL UTILITIES IEBCOPYjanaki ram
 
Advanced REXX Programming Techniques
Advanced REXX Programming TechniquesAdvanced REXX Programming Techniques
Advanced REXX Programming TechniquesDan O'Dea
 

What's hot (20)

Mainframe interview
Mainframe interviewMainframe interview
Mainframe interview
 
Jcl interview questions
Jcl interview questionsJcl interview questions
Jcl interview questions
 
Mainframe refresher-part-1
Mainframe refresher-part-1Mainframe refresher-part-1
Mainframe refresher-part-1
 
IBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration BasicsIBM DB2 for z/OS Administration Basics
IBM DB2 for z/OS Administration Basics
 
DB2 DOCUMENT
DB2 DOCUMENTDB2 DOCUMENT
DB2 DOCUMENT
 
JCL FOR FRESHERS
JCL FOR FRESHERSJCL FOR FRESHERS
JCL FOR FRESHERS
 
DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1
 
Introduction of ISPF
Introduction of ISPFIntroduction of ISPF
Introduction of ISPF
 
COBOL FOR FRESHER
COBOL FOR FRESHERCOBOL FOR FRESHER
COBOL FOR FRESHER
 
DB2 utilities
DB2 utilitiesDB2 utilities
DB2 utilities
 
IBM Utilities
IBM UtilitiesIBM Utilities
IBM Utilities
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilities
 
MVS ABEND CODES
MVS ABEND CODESMVS ABEND CODES
MVS ABEND CODES
 
Db2
Db2Db2
Db2
 
SKILLWISE-DB2 DBA
SKILLWISE-DB2 DBASKILLWISE-DB2 DBA
SKILLWISE-DB2 DBA
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 
Mainframe IPL Process.pdf
Mainframe IPL Process.pdfMainframe IPL Process.pdf
Mainframe IPL Process.pdf
 
JCL UTILITIES IEBCOPY
JCL UTILITIES IEBCOPYJCL UTILITIES IEBCOPY
JCL UTILITIES IEBCOPY
 
Advanced REXX Programming Techniques
Advanced REXX Programming TechniquesAdvanced REXX Programming Techniques
Advanced REXX Programming Techniques
 
Tso and ispf
Tso and ispfTso and ispf
Tso and ispf
 

Viewers also liked

online training for IBM DB2 LUW UDB DBA
online training for IBM DB2 LUW UDB DBAonline training for IBM DB2 LUW UDB DBA
online training for IBM DB2 LUW UDB DBARavikumar Nandigam
 
Top 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answersTop 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answersjonhmart036
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview QuestionsSrinimf-Slides
 

Viewers also liked (7)

JCL DFSORT
JCL DFSORTJCL DFSORT
JCL DFSORT
 
Cobol interview-questions
Cobol interview-questionsCobol interview-questions
Cobol interview-questions
 
online training for IBM DB2 LUW UDB DBA
online training for IBM DB2 LUW UDB DBAonline training for IBM DB2 LUW UDB DBA
online training for IBM DB2 LUW UDB DBA
 
Top 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answersTop 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answers
 
Mvs commands
Mvs commandsMvs commands
Mvs commands
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
 
Cobol basics 19-6-2010
Cobol basics 19-6-2010Cobol basics 19-6-2010
Cobol basics 19-6-2010
 

Similar to Mainframe jcl exec and dd statements part - 3

My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!Anas Mohammed
 
9. DBMS Experiment Laboratory PresentationPPT
9. DBMS Experiment Laboratory PresentationPPT9. DBMS Experiment Laboratory PresentationPPT
9. DBMS Experiment Laboratory PresentationPPTTheVerse1
 
The Easytrieve Presention by Srinimf
The Easytrieve Presention by SrinimfThe Easytrieve Presention by Srinimf
The Easytrieve Presention by SrinimfSrinimf-Slides
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 
PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12Andrew Dunstan
 
R12 d49656 gc10-apps dba 26
R12 d49656 gc10-apps dba 26R12 d49656 gc10-apps dba 26
R12 d49656 gc10-apps dba 26zeesniper
 
Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbmsjain.pralabh
 
Mysqlppt
MysqlpptMysqlppt
MysqlpptReka
 
Oracle - Program with PL/SQL - Lession 14
Oracle - Program with PL/SQL - Lession 14Oracle - Program with PL/SQL - Lession 14
Oracle - Program with PL/SQL - Lession 14Thuan Nguyen
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq lsInSync Conference
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questionsNaveen P
 
Logging with Logback in Scala
Logging with Logback in ScalaLogging with Logback in Scala
Logging with Logback in ScalaKnoldus Inc.
 

Similar to Mainframe jcl exec and dd statements part - 3 (20)

My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
9. DBMS Experiment Laboratory PresentationPPT
9. DBMS Experiment Laboratory PresentationPPT9. DBMS Experiment Laboratory PresentationPPT
9. DBMS Experiment Laboratory PresentationPPT
 
The Easytrieve Presention by Srinimf
The Easytrieve Presention by SrinimfThe Easytrieve Presention by Srinimf
The Easytrieve Presention by Srinimf
 
11i Logs
11i Logs11i Logs
11i Logs
 
SQL / PL
SQL / PLSQL / PL
SQL / PL
 
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu   (obscure) tools of the trade for tuning oracle sq lsTony Jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony Jambu (obscure) tools of the trade for tuning oracle sq ls
 
PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12
 
R12 d49656 gc10-apps dba 26
R12 d49656 gc10-apps dba 26R12 d49656 gc10-apps dba 26
R12 d49656 gc10-apps dba 26
 
Pl sql using_xml
Pl sql using_xmlPl sql using_xml
Pl sql using_xml
 
Procedures/functions of rdbms
Procedures/functions of rdbmsProcedures/functions of rdbms
Procedures/functions of rdbms
 
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
 
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
 
Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
 
Database programming
Database programmingDatabase programming
Database programming
 
Oracle - Program with PL/SQL - Lession 14
Oracle - Program with PL/SQL - Lession 14Oracle - Program with PL/SQL - Lession 14
Oracle - Program with PL/SQL - Lession 14
 
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
Tony jambu   (obscure) tools of the trade for tuning oracle sq lsTony jambu   (obscure) tools of the trade for tuning oracle sq ls
Tony jambu (obscure) tools of the trade for tuning oracle sq ls
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questions
 
Mysqlppt
MysqlpptMysqlppt
Mysqlppt
 
Logging with Logback in Scala
Logging with Logback in ScalaLogging with Logback in Scala
Logging with Logback in Scala
 
Plproxy
PlproxyPlproxy
Plproxy
 

Recently uploaded

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Mainframe jcl exec and dd statements part - 3

  • 1. MAINFRAME REFRESHER JCL PART-3 ( EXEC AND DD STATEMENTS ) JANAKI RAM SOMISETTY
  • 2. MAINFRAMES REFRESHER PART-3 JCL  EXEC STATEMENT(EXEC)  EXEC Statement is used to identify program name or procedure name.  Maximum we can code 255 EXEC statements in a JOB.  In EXEC statement has two kinds of parameters  Position parameter Keyword parameter  PGM TIME , COND  PROC REGION , PARM  If you not mention any thing default it takes PROC
  • 3. MAINFRAMES REFRESHER PART-3 JCL  PGM  This is a positional parameter which must be coded after EXEC with one blank. This parameter indicates the name of program (or) procedure name  Syntax  //STEPNAME EXEC PGM=REPORT (OR) PROC = PROCEDURE NAME
  • 4. MAINFRAMES REFRESHER PART-3 JCL  PARM  It is keyword parameter and it is mainly used for passing the data to another program.  To pass input to Application program  To invoke complier option.  This is a keyword parameter at activity / step level must be coded with exec operand after PGM parameter.  This parameter allows MAX(100) characters.  To receive PARM parameter data, Cobol program must be coded with “Procedure Division Using Parameter ” option.  These parameters must be declared in the linkage section.
  • 5. MAINFRAMES REFRESHER PART-3 JCL  DATA DESCRIPTOR STATEMENT ( DD STMT)  It is used to identify files( input and output ) used in JCL  DD name act as a bridge b/w Cobol program and execution JCL  In DD statement has two kinds of parameters.  Position Parameter Keyword Parameter  * DSN,DISP  DATA SPACE,UNIT  DUMMY DCB,VOLUME
  • 6. MAINFRAMES REFRESHER PART-3 JCL  *  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 stream data is used to pass values from JCL to Cobol dynamically.  To accept the values in Cobol program, we should have equivalent accept verbs.  Syntax //SYSIN DD * ------- Entry of in stream data 100 200 /* ---------------------- End of in stream data INPUT
  • 7. MAINFRAMES REFRESHER PART-3 JCL  DATA  We can pass any thing to another program including special character  Syntax //SYSIN DD DATA 100 /* 200 /* INPUT
  • 8. MAINFRAMES REFRESHER PART-3 JCL  DUMMY  All files are treated as End of the file  Syntax //SYSIN DD DUMMY NOTE There is no input to the application all input files treated as End of the file.
  • 9. MAINFRAMES REFRESHER PART-3 JCL  DSN  Through DSN we can refer temporary / permanent file  Is a physical space or file where the records will be stored. o DISP • DISP parameter is used to identify the mode of the file. • DISP= ( STATUS, NORMAL , ABNORMAL ) TERMINATION TERMINATION NEW DELETE DELETE OLD KEEP KEEP SHR CATLG CATLG MOD UNCATLG UNCATLG
  • 10. MAINFRAMES REFRESHER PART-3 JCL  NEW Creating the data set first time  OLD Already created accessing the data set all resources are allocated exclusively . No other user can until is released by the current user. If dataset is not existing this creates.  SHR The data set can be accessed by multiple users at a time.  MOD Appending the records to the existing record NOTE If the dataset is not existing , then MOD is assumed as NEW and writes records to the dataset.
  • 11. MAINFRAMES REFRESHER PART-3 JCL  NORMAL All the parameters of normal are active when the JOB executes successfully.  DELETE Dataset is deleted when job creates successfully  KEEP It keeps dataset in system. But it doesn’t create any reference in CATLG  CATLG When job terminates successfully it is going to create an index by a referencing name specified in volume label. This keeps data set.  UNCATLG I resides in system, but it deletes volume label name from CATLG like keep.  PASS To pass dataset to subsequence steps.
  • 12. MAINFRAMES REFRESHER PART-3 JCL  ABNORMAL  It indicates the unsuccessful execution and allowed parameters are similar to normal termination expect pass.  Default DISP = (NEW,DELETE,DELETE)
  • 13. MAINFRAMES REFRESHER PART-3 JCL  SPACE  This is a keyword parameter in DD Operand can be coded anywhere after DD Operand .  This is used to request the storage for the dataset as per the requirement .  The storage space is divided in to primary and secondary for effective storage space utilization.  EX Space = (TRK,(5,3,0),RLSE) PRIMARY SECONDARY DIRECTORY BLOCKSTORAGE DEVICE
  • 14. MAINFRAMES REFRESHER PART-3 JCL  CYLINDERS.BLOCKS,TRACKS AND RECORDS Different types of STORAGES o PRIMARY o This is primary which is allocated to the data set while creating. o SECONDARY o This is additional memory allocated in addition to the primary memory. o RLSE o Is used to release the unused space when PGM terminates successfully / unsuccessfully.
  • 15. MAINFRAMES REFRESHER PART-3 JCL  DATA CONTROL BLOCKS  This contains the following parameters used to specify file attributes.  EX DCB=(LRECL=100,BLKSIZE=1000,RECFM=FB,DSORG=PS) Logical record f/fb = fixed length Length = 100 v/vb= variable length (PO/PS) Fixed/variable length f/fb  LRECL=100 v/vb LRECL=Maxlength+4 Block size(LRECL * 10)