Sie sind auf Seite 1von 13

MAINFRAMES

JCL – Job Control Language


NAGARAJU DOMALA
JCL – JOB CONTROL LANGUAGE

Session 7

Nagaraju Domala
SESSION OBJECTIVES
At the end of this session participants would have understood

Code chronological datasets

Nagaraju Domala
Points to Cover
 Usage and advantages of GDGs
 Parameters for base GDG creation
 How to refer Generations in JCLs

Nagaraju Domala
Usage and advantages of GDGs
A Generation Data Group (GDG) is a group of chronologically or
functionally related data sets.

Processing of GDG
1) Adding a new generation
2) Retaining the previous generation
3) Discarding the oldest generation

Nagaraju Domala
Usage and advantages of GDGs
Creating Generation Data Group

1) Create a GDG Base Entry


2) Create a GDG model data set label
3) Create a Generation dataset model

Nagaraju Domala
Usage and advantages of GDGs
Create an index for the GDG

000100 //UELA009A JOB (TECHM),NOTIFY=INF6244,CLASS=A


000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DEFINE GDG -
000600 (NAME(UELA009.PAYROLL.VERSION)-
000700 LIMIT(3)-
000800 EMPTY-
000900 SCRATCH)
001000 /*

Nagaraju Domala
Usage and advantages of GDGs
Creating a model dataset

 For Non SMS managed datasets, define a model dataset (DSCB)


such that new GDG created will use prespecified parameters

 DSCB supplies the DCB &EXPDT subparameters for the GDG

 The model dataset must be cataloged

 It is linked to the GDG via a “DCB=model name” on creating new


GDS

Nagaraju Domala
Parameters for base GDG creation

Nagaraju Domala
How to refer Generations in JCLs
Create DSCB

000100 //UELA009 A JOB (TECHM),NOTIFY=INF6244,CLASS=A


000200 //STEP1 EXEC PGM=IEFBR14
000600 //DD1 DD DSN=UELA009.PAYROLL,DISP=(,KEEP),
000700 // SPACE=(TRK,(0)),VOL=SER=,UNIT=SYSDA,
000800 // DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)

Nagaraju Domala
How to refer Generations in JCLs
Create GDS
(generation data set)

000100 //UELA009 A JOB (TECHM),NOTIFY=INF6244,CLASS=A


000200 //STEP1 EXEC PGM=IEFBR14
000300 //DD1 DD DSN=UELA009.PAYROLL.VERSION(+1),
000400// DISP=(NEW,CATLG),
000500 // SPACE=(TRK,(1,1)),VOL=SER=,UNIT=SYSDA,
000600 // DCB=UELA009.PAYROLL

Nagaraju Domala
How to refer Generations in JCLs
Deleting GDG Catalog Entries
•Delete a model
000100 //UELA009A JOB (TECHM),NOTIFY=INF6244,CLASS=A
000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DELETE UELA009.PAYROLL PURGE
000600 /*
•Delete an allocated GDG and deletes all GDS’s
000100 //UELA009A JOB (TECHM),NOTIFY=INF6244,CLASS=A
000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 DELETE UELA009.PAYROLL.VERSION PURGE FORCE
000600 /*

Nagaraju Domala
How to refer Generations in JCLs
Listing of GDG Catalog Information

000100 //UELA009A JOB (TCHM),NOTIFY=INF6244,CLASS=A


000200 //STEP1 EXEC PGM=IDCAMS
000300 //SYSPRINT DD SYSOUT=*
000400 //SYSIN DD *
000500 LISTCAT GDG ENTRIES(UELA009.PAYROLL.VERSION)ALL
000600 /*

Nagaraju Domala

Das könnte Ihnen auch gefallen