Stephen Linkin Houston Community College 28-Mar-07 © 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1 JCL For VSAM Data Sets.

Slides:



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

Stephen Linkin Houston Community College 5-Apr-07 © Mike Murach & Associates, HCC, IBM 1 Using AMS (Access Method Services)
Murach’s C# 2010, C3 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
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 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.
Chapter 5: Working with data sets
Murach’s Mainframe COBOL© 2004, Mike Murach & Associates, Inc.Chapter 14, Slide 1.
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.
VSAM KSDS and COBOL Department of Computer Science Northern Illinois University August 2005 Some of the illustrations are from VSAM: Access Method Services.
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.
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.
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.
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 
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 the new mainframe © Copyright IBM Corp., All rights reserved. Chapter 6: Using Job Control Language (JCL) and System Display and.
VSAM ESDS and RRDS Department of Computer Science Northern Illinois University September 2005 Some of the illustrations are from VSAM: Access Method Services.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2004, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2004, 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.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2002, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
Overview of VSAM and Defining a Cluster
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2000, Mike Murach & Associates, Inc.
Presentation transcript:

Stephen Linkin Houston Community College 28-Mar-07 © Mike Murach & Associates, HCC, IBM 1 JCL For VSAM Data Sets

2 Objectives Knowledge objectives Explain why you code only a few DD parameters for an existing VSAM data set. Explain how to delete a VSAM data set without using AMS if SMS is active. Explain what DD statements in a job that executes a COBOL program with alternate indexes to a VSAM file. Explain how using standard JCL (under SMS) instead of AMS to create a VSAM file simplifies volume allocation. Applied objectives Code a DD statement to requirements for a job that processes VSAM files, : a) A llocate an existing VSAM file b) A llocate a DUMMY file when the program expects a VSAM file c) C reate a VSAM file, assuming SMS is active

© Mike Murach & Associates, HCC, IBM3 Syntax Of DD Statement For Existing VSAM Data Sets The Syntax A DD Statement Allocating VSAM Set For Shared Access A DD Statement Specifying Exclusive Access And Deleting The Data Set On Job Step Completion (SMS Only) A DD Statement Allocating Dummy VSAM Data Set //ddname DD { DSNAME=data-set-name } { DUMMY } [,DISP=(status,normal-disp,abnormal-disp) ] [,AMP=(option,option...) ] //CUSTMAST DD DSNAME=MM01.CUSTOMER.MASTER,DISP=SHR //PAYTRAN DD DSNAME=MM01.PAYMENT.TRANS, // DISP=(OLD,DELETE) //PAYTRAN DD DUMMY,AMP=AMORG

© Mike Murach & Associates, HCC, IBM4 The COBOL SELECT Statement for KSDS processed by two alternate keys SELECT EMPMAST ASSIGN TO EMPMAST ORGANIZATION IS INDEXED ACCESS IS RANDOM RECORD-KEY IS ER-EMPLOYEE-NUMBER ALTERNATE RECORD KEY IS ER-SOCIAL-SECURITY-NO ALTERNATE RECORD KEY IS ER-DEPT-NO WITH DUPLICATES.

© Mike Murach & Associates, HCC, IBM5 The DD statements The EMPMAST file and its alternate indexes KSDS with a homogeneous ddname 8 characters long //EMPMAST DD DSNAME=MMA2.EMPLOYEE.MASTER,DISP=SHR //EMPBYSSN DD DSNAME=MMA2.EMPLOYEE.MASTER.SSN.PATH, // DISP=SHR //EMPBYDPT DD DSNAME=MMA2.EMPLOYEE.MASTER.DEPT.PATH, // DISP=SHR //EMMASTER DD DSNAME=MMA2.EMPLOYEE.MASTER,DISP=SHR //EMMASTE1 DD DSNAME=MMA2.EMPLOYEE.MASTER.SSN.PATH, // DISP=SHR //EMMASTE2 DD DSNAME=MMA2.EMPLOYEE.MASTER.DEPT.PATH, // DISP=SHR

© Mike Murach & Associates, HCC, IBM6 New VSAM Data Sets (SMS Only) The Syntax Of The DD Statement //ddname DD DSNAME=data-set-name, // DISP=(NEW,normal-disp,abnormal-disp) [,UNIT=unit ] [,VOL=SER=vol-ser ] [,SPACE=(unit,(primary,secondary)) ] [,AVGREC= U | K | M ] [,RECORG= KS | ES | RR ] [,LRECL=length ] [,KEYLEN=length ] [,KEYOFF=offset ] [,LIKE=data-set-name ] [,STORCLAS=storage-class ] [,DATACLAS=data-class ] [,MGMTCLAS=management-class ]

© Mike Murach & Associates, HCC, IBM7

8 Create A KSDS A DD Statement Using A Specific Volume Request A DD Statement Using A Non-specific Volume Request //DUNNING DD DSNAME=MM01.DUNNING.MASTER, // DISP=(NEW,CATLG), // UNIT=SYSDA,VOL=SER=MPS800, // SPACE=(CYL,(200,50)), // RECORG=KS,LRECL=120, // KEYLEN=7,KEYOFF=5 //DUNNING DD DSNAME=MM01.DUNNING.MASTER, // DISP=(NEW,CATLG), // UNIT=SYSDA, // SPACE=(CYL,(200,50)), // RECORG=KS,LRECL=120, // KEYLEN=7,KEYOFF=5

© Mike Murach & Associates, HCC, IBM9 Create A KSDS A DD Statement Using An SMS Classes //DUNNING DD DSNAME=MM01.DUNNING.MASTER, // DISP=(NEW,CATLG), // STORCLAS=MVPS100, // DATACLAS=MVPD050, // MGMTCLAS=MVPM010, // LRECL=120, // KEYLEN=7,KEYOFF=5

© Mike Murach & Associates, HCC, IBM10 End Presentation