JCL Tutorial - Create GDG Base in JCL | JCL GDG Creation | How to define a GDG Base? | JCL GDG Base.

  Рет қаралды 1,858

Topictrick

Topictrick

Күн бұрын

#jcl #jcltutorial #cobol #coboltutorial #mainframe #topictirck
Hola, welcome back to JCL Tutorial on "How to create GDG Base in JCL". JCL GDGs or Generation Data Groups or Mainframe GDGs are generally used for storing backups. In this GDG Mainframe tutorial, you'll learn to create GDG Base in JCL. You'll also learn how to create a generation data set and model GDG data sets. Finally, at the end of the GDG Base tutorial, I will showcase an example JCL for GDG Base creation. Let's get started with a tutorial on creating a GDG Base using IDCAMS utility.
► Index Details ◄
0:00 Welcome.
0:25 JCL GDG Tutorial Agenda.
1:38 Mainframe GDG Basics or GDG Introduction.
2:31 GDG Generation Format.
3:02 GDG dataset name example.
3:18 How to define a GDG Base or Create a GDG Base in JCL.
3:32 Steps to create a GDG base using VSAM IDCAMS utility.
4:07 Example JCL for GDG Base creation.
5:05 Example JCL to create a GDG base model dataset.
6:25 How to create a GDG generation dataset?
7:35 Mainframe GDG Tutorial End.
► Introduction to GDG or GDG base or Generation Data Group.
A mainframe GDG base is a collection of two or more similar versions of the same data set for example monthly salary data. They are generally used to maintain critical data backups. Each file in the GDG base can be referred to as a generation data-set. GDG data-sets are non-VSAM sequential data sets that reside on tape or DASD.
►GDG- Generation Number Format or generation version: data-setname.GaaaaVnn
aaaa - value lies between 0000 to 9999.
nn - value lies between 00 to 99.
► Example: TT.EMP.MNTH.SAL.G0001V00 ◄ Max length of GDG Base name is 35 char.
Every time a generation data set is processed, a new generation of the data set is added to the GDG base. This new version becomes the current generation, and the old current generation becomes the previous generation.
In order to refer to the generations of a GDG, you can use relative generation numbers to quickly access the GDG dataset.
► The current generation is referred to as generation 0.
► Previous generations are referred to as generations -1, -2, -3, and so on.
► Next Generation is referred to as +1.
► Important Point: While the current generation is being updated, the next generation is referred to as +1. But as soon as the job is finished, the next generation becomes the current generation (0), and the other relative generation numbers are reduced by 1.
► DEFINE GDG Command Syntax.
DEFINE GDG | GENERATIONDATAGROUP
( NAME(GDG dataset-name)
LIMIT(limit) ◄ GDG Max limit is 255
[ EMPTY | NOEMPTY ]
[ SCRATCH | NOSCRATCH ]
[ OWNER(owner-id) ]
[ TO(yyyyddd) | FOR(nnnn) ] )
► How to create a GDG Base by using JCL.
//TPTRK23A JOB 99999,'Topictrick',MSGCLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG ( NAME(TT.EMP.MNTH.SAL.DATA) -
LIMIT(5) -
NOEMPTY -
SCRATCH )
/*
► How to create a GDG generation dataset by using JCL.
//TPTRK23A JOB 99999,'Topictrick',MSGCLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP001 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//EMPSAL DD DSN=TT.EMP.SAL.MODL,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// DCB=(DSORG=PS,RECFM=FB)
/*
► How to use GDG generation dataset in JCL.
//TPTRK23A JOB 99999,'Topictrick',MSGCLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP01 EXEC PGM=EMPSL003
//PRVSALF DD DSN=TT.EMP.MNTH.SAL.DATA(0),DISP=OLD
//NEWSALF DD DSN=TT.EMP.MNTH.SAL.DATA(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(10,1)),
// DCB=(TT.EMP.SAL.MODL,LRECL=80)
//EMPSAL DD DSN=TT.EMP.MNTH.SAL.REPT,DISP=SHR
//SYSOUT DD *
//
►Subscribe to Topictrick & Don't forget to press THE BELL ICON to never miss any updates. ◄
Also, Please visit below mention the link to stay connected with Topictrick on -
► Official Website : www.topictrick.com
► KZbin : topictrick
► Follow us on Twitter : / topictrick
► Facebook : / topictrick
► Linkedin : / topictrick
► Reddit : / topictrick
► Mainframe Blog : mainframe-foru...
Thank you for your support.
Topictrick™

Пікірлер
Last Person Hanging Wins $10,000
00:43
MrBeast
Рет қаралды 151 МЛН
Кровавый лидер #сталин #китай #мао
00:55
Послезавтра
Рет қаралды 3,5 МЛН
Тест на интелект - Minecraft Roblox
00:19
ЛогикЛаб #2
Рет қаралды 1,4 МЛН
AZ-900 Episode 11 | Azure Storage Services | Blob, Queue, Table, Files, Disk and Storage Tiers
19:25
Introduction to Databases: LibreOffice Base Tutorial
29:48
ExplainingComputers
Рет қаралды 178 М.
Create GDG Base in JCL - Mainframe JCL Tutorial - Part 23
7:33
Kumar ITChannel
Рет қаралды 27 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 102 М.
HTTPS, SSL, TLS & Certificate Authority Explained
43:29
Laiture
Рет қаралды 161 М.
Create GDG Generation in JCL - Mainframe JCL Tutorial - Part 24
3:51
Kumar ITChannel
Рет қаралды 19 М.