Stephen Linkin Houston Community College 3/21/2007 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 Managing Generation Data Groups.

Slides:



Advertisements
Similar presentations
HORIZONT 1 XINFO ® The IT Information System z/OS - JCL HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
Advertisements

SmartJCL HORIZONT Release Notes SmartJCL and TWS Job Tailoring
Stephen Linkin Houston Community College 15-Jan-07 © Mike Murach & Associates, HCC, IBM 1 Use ISPF To Manage JCL Chapter 3.
Stephen Linkin Houston Community College 5-Apr-07 © Mike Murach & Associates, HCC, IBM 1 Using AMS (Access Method Services)
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.
HORIZONT 1 DSN/Change The Dataset Renaming System HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
Stephen Linkin Houston Community College 3/27/2007 © Mike Murach & Associates, HCC, IBM 1 SMS Facilities For Data Set Allocation.
Stephen Linkin Houston Community College 28-Mar-07 © Mike Murach & Associates, HCC, IBM 1 JCL For VSAM Data Sets.
HORIZONT 1 SmartJCL ® The Complete JCL Solution Product Presentation HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89.
MVS/ESA Fundamentals of VSAM © Copyright IBM Corp., 2000, All rights reserved.
Stephen Linkin Houston Community College 14-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Managing SYSOUT Data Sets.
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
Stephen Linkin Houston Community College 19-Jan-07 © Mike Murach & Associates, HCC, IBM 1 RESTART And Other Program Execution Facilities.
Stephen Linkin Houston Community College January 15, 2007 © Mike Murach & Associates, HCC, IBM 1 Introduction To IBM Mainframe Systems Chapter.
Virtual Storage Access Method (VSAM)
Stephen Linkin Houston Community College 13-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Managing Tape Data Sets Chapter # 7.
Stephen Linkin Houston Community College 1/31/07 © Mike Murach & Associates, HCC, IBM 1 Using JCL and JES To Manage Program Execution Chapter.
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,
FATSCOPY. Mass Tape Data Migration FATS Tape Quality Control FATAR Tape Data Tool.
A Simple Cobol Example – ISPF vs RDz Enterprise Systems1.
Stephen Linkin Houston Community College 5-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Using JCL Facilities To Allocate Other DASD Data.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 8: Using Job Control Language (JCL) and System Display and.
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.
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.
Stephen Linkin Houston Community College 21-Feb-07 © Mike Murach & Associates, HCC, IBM 1 Using JCL Procedures.
Stephen Linkin Houston Community College 26-Feb-07 © Mike Murach & Associates, HCC, IBM 1 How To Process Jobs Conditionally.
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.
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.
13-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
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.
VSAM Alternate Indexes Department of Computer Science Northern Illinois University August 2005.
Working with Datasets Part 1, non VSAM
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.
1 Working With Data Sets Stephen S. Linkin Houston Community College © HCCS and IBM 2008 ©HCCS & IBM® 2008 Stephen Linkin.
Introduction to z/OS Basics © 2006 IBM Corporation Chapter 7: Batch processing and the Job Entry Subsystem (JES) Batch processing and JES.
1 Batch Processing And JES Stephen S. Linkin Houston Community College © HCCS and IBM 200 ©HCCS & IBM® 2008 Stephen Linkin.
Introduction to the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
HORIZONT 1 XINFO ® The IT Information System z/OS - JCL HORIZONT Software for Datacenters Garmischer Str. 8 D München Tel ++49(0)89 /
HORIZONT XINFO – Scanner zOS – JCL1 HORIZONT XINFO – Scanner zOS – JCl.
Ver 1.0/ 3 rd Sep 2001 Classification : InternalProprietary & Confidential VSAM.
Cloning Flow for
XINFO – Scanner z/OS – JCL
Batch Processing, JCL and SDSF
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
JCL Standards #2 Company Name
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
JCL Standards #3 Company Name
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
Dataset Explorer Training
Company Name Date - Time
© 2002, Mike Murach & Associates, Inc.
Overview of VSAM and Defining a Cluster
Presentation transcript:

Stephen Linkin Houston Community College 3/21/2007 © Mike Murach & Associates, HCC, IBM 1 Managing Generation Data Groups

3/21/2007 © Mike Murach & Associates, HCC, IBM2 Objectives Knowledge objectives Explain what generation data groups are and why theyre used. Distinguish between relative and absolute generation numbers, How they refer to the generations of a GDG. Name the two main functions to create a GDG. Describe the role of the model DSCB in specifying DCB information for new generations of a GDG. Distinguish between specific model DSCB and general-purpose model DSCBs. Name the utility to create and delete GDGs. Name two facilities used to list GDG catalog information. Applied objectives Code the JCL necessary to create or retrieve generations of a generation data group. Code a job that defines a generation data group and allocates a model DSCB. List GDG catalog information

3/21/2007 © Mike Murach & Associates, HCC, IBM3 GDG Facts A GDG, is a collection of two or more chronologically related versions of the same data set. They are non-VSAM sequential data sets on tape or DASD. Each time a generation data set is processed, a new generation is added to the GDG. To refer to the generations we use relative generation numbers like 0, -1, -2, and -3. GDGs and generation data sets in them must be cataloged. During creation of a catalog entry for a GDG, you specify how many should be maintained

3/21/2007 © Mike Murach & Associates, HCC, IBM4 The Relative Positions Of GDG Members Figure 12-01b

3/21/2007 © Mike Murach & Associates, HCC, IBM5 Typical Update Procedure Using A Generation Data Group Figure 12-02a

3/21/2007 © Mike Murach & Associates, HCC, IBM6 Formatting Generation And Version Numbers Format How the absolute generation numbers for the GDG members change Data set name Data set name Relative namebefore processingafter processing PAYMAST(0)PAYMAST.G0012V00PAYMAST.G0013V00 PAYMAST(-1)PAYMAST.G0011V00PAYMAST.G0012V00 PAYMAST(-2)PAYMAST.G0010V00PAYMAST.G0011V00 PAYMAST(-3)PAYMAST.G0009V00PAYMAST.G0010V00 datasetname.GnnnnVnn

3/21/2007 © Mike Murach & Associates, HCC, IBM7 Syntax Referring To GDG Members dsname(relative-number)

3/21/2007 © Mike Murach & Associates, HCC, IBM8 A Two-step Job That Updates A GDG Master File Twice //MM01PY1 JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID //UPDATE1 EXEC PGM=PAY3200 //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER(0),DISP=OLD //NEWMAST DD DSNAME=MM01.PAYROLL.MASTER(+1), // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(CYL,(10,1)) //PAYTRAN DD DSNAME=MM01.PAYROLL.TRANS.CORP,DISP=OLD //PAYCORP DD SYSOUT=* //UPDATE2 EXEC PGM=PAY3210 //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER(+1),DISP=OLD //NEWMAST DD DSNAME=MM01.PAYROLL.MASTER(+2), // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(CYL,(10,1)) //PAYTRAN DD DSNAME=MM01.PAYROLL.TRANS.BRANCH,DISP=OLD //PAYLIST DD SYSOUT=*

3/21/2007 © Mike Murach & Associates, HCC, IBM9 Two One-step Jobs Updating A GDG Master File MM01PY2 MM01PY3 //MM01PY2 JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID //UPDATE1 EXEC PGM=PAY3200 //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER(0),DISP=OLD //NEWMAST DD DSNAME=MM01.PAYROLL.MASTER(+1), // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(CYL,(10,1)), // DCB=(LRECL=80) //PAYTRAN DD DSNAME=MM01.PAYROLL.TRANS.CORP,DISP=OLD //PAYCORP DD SYSOUT=* //MM01PY3 JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID //UPDATE2 EXEC PGM=PAY3210 //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER(0),DISP=OLD //NEWMAST DD DSNAME=MM01.PAYROLL.MASTER(+1), // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(CYL,(10,1)) //PAYTRAN DD DSNAME=MM01.PAYROLL.TRANS.BRANCH,DISP=OLD //PAYLIST DD SYSOUT=*

3/21/2007 © Mike Murach & Associates, HCC, IBM10 DEFINE GDG Syntax for AMS DEFINE GDG Command DEFINE GDG|GENERATIONDATAGROUP ( NAME(entry-name) LIMIT(limit) [ EMPTY | NOEMPTY ] [ SCRATCH | NOSCRATCH ] [ OWNER(owner-id) ] [ TO(yyyyddd) | FOR(nnnn) ] ) LIMIT(limit) [ EMPTY | NOEMPTY ] [ SCRATCH | NOSCRATCH ] [ OWNER(owner-id) ] [ TO(yyyyddd) | FOR(nnnn) ] )

3/21/2007 © Mike Murach & Associates, HCC, IBM11 Samples of Code... A Job Defines A GDG And Allocates A Model DSCB Creates A General-purpose Model DSCB Defines A GDG With A General-purpose Model DSCB Update A GDG Using A General-purpose Model DSCB //MM01DFG JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID // EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //MODEL DD DSNAME=MM01.PAYROLL.MASTER,DISP=(,KEEP), // UNIT=SYSDA,VOL=SER=MPS800,SPACE=(TRK,(0)), // DCB=(DSORG=PS,RECFM=FB,LRECL=400) //SYSIN DD * DEFINE GDG ( NAME(MM01.PAYROLL.MASTER) - LIMIT(5) - NOEMPTY - SCRATCH ) /* //MM01BR14 JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID // EXEC PGM=IEFBR14 //DD1 DD DSNAME=MODLDSCB,DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS800, // SPACE=(TRK,(0)), // DCB=(DSORG=PS,RECFM=FB) //MM01DFG JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID // EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DEFINE GDG (NAME(MM01.PAYROLL.MASTER) - LIMIT(5) - NOEMPTY - SCRATCH ) /* //MM01PY4 JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID //UPDATE EXEC PGM=PAY3200 //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER(0),DISP=OLD //NEWMAST DD DSNAME=MM01.PAYROLL.MASTER(+1),DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS8BV, // SPACE=(CYL,(10,1)), // DCB=(MODLDSCB,LRECL=400) //PAYTRAN DD DSNAME=MM01.PAYROLL.TRANS,DISP=OLD //PAYCORP DD SYSOUT=*

3/21/2007 © Mike Murach & Associates, HCC, IBM12 Figure 12-06a Using ISPF DLIST Screen To List GDG Information

3/21/2007 © Mike Murach & Associates, HCC, IBM13 Using GDGs Use AMS LISTCAT to list GDG information A DD statement referring to a data set by absolute generation number //MM01LST JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID // EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * LISTCAT ENTRIES(MM01.PAYROLL.MASTER) - GDG - ALL /* //OLDMAST DD DSNAME=MM01.PAYROLL.MASTER.G0009V00, // DISP=OLD

3/21/2007 © Mike Murach & Associates, HCC, IBM14 Housekeeping Syntax For The AMS DELETE GDG Command Syntax For The AMS DELETE GDG Command Deleting a GDG Deleting a GDG DELETE entry-name GDG|GENERATIONDATAGROUP [ PURGE|NOPURGE ] [ FORCE|NOFORCE ] //MM01DELG JOB (36512),'R MENENDEZ',NOTIFY=&SYSUID // EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE MM01.PAYROLL.MASTER GDG - PURGE - FORCE /*

3/21/2007 © Mike Murach & Associates, HCC, IBM15 End Presentation