Click to add text Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility.

Slides:



Advertisements
Similar presentations
Euro/File Demonstration Domino Software Limited. EURO/File EURO/FILE works on a very simple principle and requires four steps to perform a run: Define.
Advertisements

Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 10: Compiling and link-editing a program on z/OS.
The Web Warrior Guide to Web Design Technologies
Programming Logic and Design Fourth Edition, Introductory
MVS/ESA Fundamentals of VSAM © Copyright IBM Corp., 2000, All rights reserved.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 16B: The IPL process.
Introduction of z/OS Basics © 2006 IBM Corporation Chapter 5: Working with data sets.
12 IBM OS/JCL: DD Statements. //TPEIN DD UNIT=TAPE,DSN=PR.FLE, // DISP=(OLD,KEEP,KEEP) The DD Statement: – Defines a data set to the operating system.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)
Chapter 5: Working with data sets
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Chapter 17: Using SMP/E In this lecture, we’ll discuss the process for installing and updating the software in a z/OS system. SMP/E is the z/OS tool for.
IBM ISPF Productivity Tool © 2008 IBM Corporation IBM ISPF Productivity Tool for z/OS V 5.9 More Than Just ISPF.
Stephen Linkin Houston Community College January 15, 2007 © Mike Murach & Associates, HCC, IBM 1 Introduction To IBM Mainframe Systems Chapter.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 5: Batch processing and the Job Entry Subsystem (JES) Batch.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
JCL Day 1. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Course Plan Day 1 :Introduction to JCL, JOB & EXEC statement,
A Simple Cobol Example – ISPF vs RDz Enterprise Systems1.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 8: Using Job Control Language (JCL) and System Display and.
Appendix C – AllFusion Endevor Life Cycle – Quick Reference - Page 1 Logon to TSO Select the Endevor Quick-Edit option To View an Element Environment xxxxxxxx.
10/16/ ER/CORP/CRS/OS02/003-4 JCL DAY 4. 10/16/ ER/CORP/CRS/OS02/003-4 VSAM DATASETS (virtual storage access method) These are the logical.
IBM ISPF Productivity Tool © 2008 IBM Corporation IBM ISPF Productivity Tool for z/OS V 5.10 More Than Just ISPF.
Stephen Linkin Houston Community College 21-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Using JCL Procedures.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 12 Understanding database managers on z/OS.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 4: Working with data sets.
MVS (Day 2). Copyright © 2005, Infosys Technologies Ltd 2 ER/CORP/CRS/OS01/003 Version No: 1.0 Agenda Data Management –Definition of data set and Record.
MVS. Traditional Mainframes Mainframe operating systems were designed to concurrently process several batch applications. Over time: – The number of concurrent.
10/26/ ER/CORP/CRS/OS02/003-3 JCL DAY 3. 10/26/ ER/CORP/CRS/OS02/003-3 PROCEDURES It is a prepacked JCL. JCL needed by many different users.
JCL Day 2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Agenda for Day 2  DD statement  Syntax  Parameters  Procedures.
Lecture 21 Lecture 2: Using TSO and ISPF Tuesday, January 20, 2009.
JCL Day 3. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/OS02/003 Version No: 1.0 Agenda for Day 3  VSAM data sets  Definition & Types 
Lecture 31 Creating Executable Programs on the Mainframe Tuesday, January 20, 2009.
1 Using JCL And SDSF Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
Introduction Basics.
© 2005 Computer Associates International, Inc. (CA). All trademarks, trade names, services marks and logos referenced herein belong to their respective.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
CICS Transaction Server V3.1 © 2005 IBM Corporation CICS Transaction Server for z/OS V3.1 Enterprise management Takahiro Ishiwatari
HORIZONT 1 XINFO ® The IT Information System z/OS - JCL HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
1 Week # 4 Introduction to PDM PDM is a workbench environment that lets programmers and system operators navigate the three levels of the AS/400’s object-based.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
HORIZONT XINFO – Scanner zOS – JCL1 HORIZONT XINFO – Scanner zOS – JCl.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
© 2009 IBM Corporation IWS z/OS SPEs Auditing enhancements.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
Classification : Internal DFSORT Utility. Classification : Internal Overview DFSORT is IBM's high-performance product for z/OS. Following operations can.
Cloning Flow for
Chapter 2: System Structures
XINFO – Scanner z/OS – JCL
Introduction to Operating System (OS)
JOB CONTROL LANGUAGE IDC Training Centre.
Batch Processing, JCL and SDSF
Skill Based Assessment
JCL Standards #2 Company Name
DB2.
Company Name Date - Time
Company Name Date - Time
Presentation transcript:

Click to add text Introduction to z/OS Basics © 2006 IBM Corporation Chapter 6: Using Job Control Language (JCL) and System Display and Search Facility (SDSF)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 2 Chapter objectives  Be able to:  Explain how JCL works with the system, give an overview of JCL coding techniques, and know a few of the more important statements and keywords  Create a simple job and submit it for execution  Check the output of your job through SDSF

Chapter 06 JCL and SDSF © 2006 IBM Corporation 3 Key terms in this chapter  concatenation  DD statement  job control language (JCL)  JOB statement  EXEC statement  job name  procedure (PROC) record format (RECFM) system display and search facility (SDSF) step name system catalog system library utility

Chapter 06 JCL and SDSF © 2006 IBM Corporation 4 What is JCL?  Job control language (JCL) tells the system what program to execute and provides a description of program inputs and outputs.  There are three basic JCL statements: –JOB statement –EXEC statement –DD statement

Chapter 06 JCL and SDSF © 2006 IBM Corporation 5 Basic JCL coding syntax

Chapter 06 JCL and SDSF © 2006 IBM Corporation 6 JCL example  //MYJOB JOB 1  //MYSORT EXEC PGM=SORT  //SORTIN DD DISP=SHR,DSN=IBMUSER.AREA.CODES  //SORTOUT DD SYSOUT=*  //SYSOUT DD SYSOUT=*  //SYSIN DD *  SORT FIELDS=(1,3,CH,A)  /*

Chapter 06 JCL and SDSF © 2006 IBM Corporation 7 In the preceding example…  MYJOBJob name  MYSORTStep name  SORTINDD name for program input  SORTOUTDD name for program output  SYSOUTWhere to send system output messages (such as a data set)  SYSIN Specifies whether the input will be data or control statements.

Chapter 06 JCL and SDSF © 2006 IBM Corporation 8 JCL: JOB statement

Chapter 06 JCL and SDSF © 2006 IBM Corporation 9 JCL: EXEC statement EXEC statement Region size

Chapter 06 JCL and SDSF © 2006 IBM Corporation 10 JCL: DD statement

Chapter 06 JCL and SDSF © 2006 IBM Corporation 11 Specifying a data set disposition(DISP):  DISP is an operand of the DD statement  DISP indicates what to do with the data set at step start, end, or abnormal end  DISP helps to prevent unwanted simultaneous access to data sets, which is very important for general system operation.

Chapter 06 JCL and SDSF © 2006 IBM Corporation 12 Uses of the DISP= operand  DISP=(status,normal end,abnormal end)  DISP=(status,normal end)  DISP=status  where status can be –NEW –OLD –SHR –MOD

Chapter 06 JCL and SDSF © 2006 IBM Corporation 13 Creating a new data set  New data sets can be created through JCL by using the DISP=NEW parameter.  For a DISP=NEW request, you need to supply more information, including: –A data set name, DSN= –The type of device for the data set, UNIT=sysda –If a disk is used, the amount of space to be allocated for the primary extent must be specified, SPACE= –If it is a partitioned data set, the size of the directory must be specified within the SPACE parameter –Optionally, DCB parameters can be specified.Explain DCB

Chapter 06 JCL and SDSF © 2006 IBM Corporation 14 Continuation and concatenation  Needed to overcome the limitations of the old 80- column punched cards. –Continuation allows a JCL statement to span multiple records. –Concatenation allows a single ddname to have multiple DD statements.

Chapter 06 JCL and SDSF © 2006 IBM Corporation 15 Continuation and concatenation (example) Continuation example // note the comma at end of card //JOBCARD JOB 1, // REGION=8M, // NOTIFY=IBMUSER Concatenation example //DATAIN DD DISP=OLD,DSN=MY.INPUT1 // DD DISP=OLD,DSN=MY.INPUT2 // DD DISP=SHR,DSN=YOUR.DATA

Chapter 06 JCL and SDSF © 2006 IBM Corporation 16 JCL procedures – example //MYJOB JOB 1 //MYPROC PROC //MYSORT EXEC PGM=SORT //SORTIN DD DISP=SHR,DSN=&SORTDSN //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* // PEND

Chapter 06 JCL and SDSF © 2006 IBM Corporation 17 JCL procedures (continued) //MYJOB JOB 1 //* * //MYPROC PROC // definition start //MYSORT EXEC PGM=SORT //SORTIN DD DISP=SHR,DSN=&SORTDSN // define variable //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* // PEND // end of definition //* * //STEP1 EXEC MYPROC,SORTDSN=IBMUSER.AREA.CODES // use of it //SYSIN DD * SORT FIELDS=(1,3,CH,A)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 18 JCL procedures (continued) //MYJOB JOB 1 //* * //MYPROC PROC // definition start //MYSORT EXEC PGM=SORT //SORTIN DD DISP=SHR,DSN=&SORTDSN // define variable //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* // PEND // end of definition //* * //STEP1 EXEC MYPROC,SORTDSN=IBMUSER.AREA.CODES // use of it //SYSIN DD * SORT FIELDS=(1,3,CH,A)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 19 JCL procedures -- statement override //MYJOB JOB 1 //* * //MYPROC PROC //MYSORT EXEC PGM=SORT // mysort is step name //SORTIN DD DISP=SHR,DSN=&SORTDSN //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* // PEND //* * //STEP1 EXEC MYPROC,SORTDSN=IBMUSER.AREA.CODES //MYSORT.SORTOUT DD DSN=IBMUSER.MYSORT.OUTPUT, // override sortout // DISP=(NEW,CATLG),SPACE=(CYL,(1,1)), // UNIT=SYSDA,VOL=SER=SHARED, // DCB=(LRECL=20,BLKSIZE=0,RECFM=FB,DSORG=PS) //SYSIN DD * SORT FIELDS=(1,3,CH,A)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 20 JCL procedures -- statement override //MYJOB JOB 1 //* * //MYPROC PROC //MYSORT EXEC PGM=SORT // mysort is step name //SORTIN DD DISP=SHR,DSN=&SORTDSN //SORTOUT DD SYSOUT=* //SYSOUT DD SYSOUT=* // PEND //* * //STEP1 EXEC MYPROC,SORTDSN=IBMUSER.AREA.CODES //MYSORT.SORTOUT DD DSN=IBMUSER.MYSORT.OUTPUT, // override sortout // DISP=(NEW,CATLG),SPACE=(CYL,(1,1)), // UNIT=SYSDA,VOL=SER=SHARED, // DCB=(LRECL=20,BLKSIZE=0,RECFM=FB,DSORG=PS) //SYSIN DD * SORT FIELDS=(1,3,CH,A)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 21 Other JCL Special Statements  JobLib – Where to look for Programs  StepLib – Where to look for programs for this step  Proclib – Where to look for procedures

Chapter 06 JCL and SDSF © 2006 IBM Corporation 22 System Display and Search Facility (SDSF) - OPTIONAL  After submitting a job, z/OS users use System Display and Search Facility (SDSF) to review the job output for successful completion or JCL errors.  SDSF allows users to: –View and search the system log –Enter system commands –Hold, release, cancel, and purge jobs –Monitor jobs while they are processed –Display job output before deciding to print it –Control the order in which jobs are processed –Control the order in which output is printed –Control printers and initiators

Chapter 06 JCL and SDSF © 2006 IBM Corporation 23 Tasks and SDSF Panels

Chapter 06 JCL and SDSF © 2006 IBM Corporation 24 SDSF panel hierarchy

Chapter 06 JCL and SDSF © 2006 IBM Corporation 25 SDSF Panel Names

Chapter 06 JCL and SDSF © 2006 IBM Corporation 26 SDSF HELP facility

Chapter 06 JCL and SDSF © 2006 IBM Corporation 27 Screen Attributes

Chapter 06 JCL and SDSF © 2006 IBM Corporation 28 SDSF: Primary option menu

Chapter 06 JCL and SDSF © 2006 IBM Corporation 29 SDSF: Options menu

Chapter 06 JCL and SDSF © 2006 IBM Corporation 30 Viewing the JES2 output files

Chapter 06 JCL and SDSF © 2006 IBM Corporation 31 SDSF: Display active users (DA)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 32 SDSF: Display active users (DA) - PREFIX your tsoid*

Chapter 06 JCL and SDSF © 2006 IBM Corporation 33 Operator Extension SDSF DA MVSA DEMOMVS PAG 0 SIO 563 CPU 15/ 15 LINE 1-17 (282) COMMAND INPUT ===> SCROLL ===> PAGE / /d u,dasd,online /d a,l

Chapter 06 JCL and SDSF © 2006 IBM Corporation 34 Issuing MVS and JES commands Note: You have to be in ISPF/SDSF for this option (SDSF can run native in TSO)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 35 SDSF: Input queue panel

Chapter 06 JCL and SDSF © 2006 IBM Corporation 36 SDSF: Output queue panel

Chapter 06 JCL and SDSF © 2006 IBM Corporation 37 SDSF: Held output queue panel

Chapter 06 JCL and SDSF © 2006 IBM Corporation 38 SDSF: Status panel

Chapter 06 JCL and SDSF © 2006 IBM Corporation 39 Utilities  z/OS includes a number of programs useful in batch processing called utilities.  Utilities provide many small, obvious, and useful functions.  Customer sites often write their own utility programs, many of which are shared by the z/OS user community.  Some examples of utilities: –IEBGENER Copies a sequential data set –IEBCOPY Copies a partitioned data set –IDCAMS Works with VSAM data sets

Chapter 06 JCL and SDSF © 2006 IBM Corporation 40 IEBGENER (Sequential Copy / Generate Dataset)  You can use IEBGENER to perform the following tasks:  * Create a backup copy of a sequential data set, a member of a partitioned data set or PDSE or a UNIX system services (USS) file such as a HFS file.  * Produce a partitioned data set or PDSE, or a member of a partitioned data set or PDSE, from a sequential data set or a USS file.  * Expand an existing partitioned data set or PDSE by creating partitioned members and merging them into the existing data set.  * Produce an edited sequential or partitioned data set or PDSE.  * Manipulate data sets containing double-byte character set data.  * Print sequential data sets, members of partitioned data sets or PDSEs or USS files.  * Reblock or change the logical record length of a data set.  * Copy user labels on sequential output data sets. Print a sequential dataset to printer or back to terminal //PRINT JOB... //STEP1 EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=A //SYSIN DD DUMMY //SYSUT1 DD DSNAME=ZUSER01.D80.DATA,DISP=SHR //SYSUT2 DD SYSOUT=A //*SYSUT2 DD SYSOUT=T Note: comment card in JCL

Chapter 06 JCL and SDSF © 2006 IBM Corporation 41 IEBCOPY (Library Copy) Utility  IEBCOPY is a data set utility that is used to copy or merge members between one or more partitioned data sets, or partitioned data sets extended (PDSEs), in full or in part.  You can also use IEBCOPY to create a backup of a partitioned data set into a sequential data set (called an unload data set or PDSU), and to copy members from the backup into a partitioned data set. //COMPRESS EXEC PGM=IEBCOPY //* //A DD DSNAME=‘ZUSER01.JCL.CNTL',DISP=OLD //B DD DSNAME=‘ZUSER01.JCL.CNTL',DISP=OLD //* //SYSIN DD * COPY OUTDD=B,INDD=A

Chapter 06 JCL and SDSF © 2006 IBM Corporation 42 VSAM – Access Method Services (IDCAMS) When you want to use an access method services function, you issue a command and specify its parameters. Your request is decoded, one command at a time, and the appropriate functional routines are then called to perform all services required by that command. You can invoke the access method services program in three ways: As a job or job step From a TSO terminal From within your own program You can execute the IDCAMS program and include the command and its parameters as input to the program. You can also call the IDCAMS program from within another program and pass the command and its parameters to the IDCAMS program. //YOURJOB JOB YOUR INSTALLATION'S JOB=ACCOUNTING DATA //JOBCAT DD DSNAME=YOUR.CATALOG,DISP=SHR //STEP1 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=ANOTHER.CATALOG,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * (access method services commands and their parameters) ===> See next slide for commands /* //

Chapter 06 JCL and SDSF © 2006 IBM Corporation 43 Examples of IDCAMS Commands

Chapter 06 JCL and SDSF © 2006 IBM Corporation 44 System Libraries  z/OS has many standard system libraries, including: –SYS1.PROCLIBJCL procedures distributed with z/OS –SYS1.PARMLIB Control parameters for z/OS and some program products. –SYS1.LINKLIBMany of the basic execution modules of the system. –SYS1.LPALIBSystem execution modules that are loaded into the link pack area at z/OS initialization.

Chapter 06 JCL and SDSF © 2006 IBM Corporation 45 Submitting a Job for execution  The Basic Environment: > Input Queue > Job Initiator - processes JCL, sets up proper environment in an address space, and then runs the batch job > Output Queue (Sysout =...)  Job submission is managed by the Job Entry Subsystems (JES2 or JES3) JES2 dominates... a.k.a. Spooling system  JES provides jobs to Initiators, and controls output devices (usually printers)

Chapter 06 JCL and SDSF © 2006 IBM Corporation 46 Summary  Basic JCL contains three statements: JOB, EXEC, and DD.  A program can access different of data sets in different jobs by changing the JCL for each job.  New data sets can be created through JCL by using the DISP=NEW parameter.  Users normally use JCL procedures for more complex jobs. A cataloged procedure is written once and can then be used by many users.  z/OS supplies many JCL procedures, and locally-written ones can be added easily.  A user must understand how to override or extend statements in a JCL procedure to supply the parameters (usually DD statements) needed for a specific job.

Chapter 06 JCL and SDSF © 2006 IBM Corporation 47 Summary - continued  SDSF is a panel interface for viewing the system log and the list of active users and controlling and monitoring jobs and resources.  Utility programs make operating on data sets easier  System libraries contain JCL procedures, control parameters, and system execution modules.