What is the important of gdg's
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 10
- Joined: Sun Jul 04, 2010 5:26 pm
What is the important of gdg's
Where shall we use the gdg in real time projects ....
can any one give some examples regarding this....
can any one give some examples regarding this....
Anil-Sani
-
- Member
- Posts: 10
- Joined: Sun Jul 04, 2010 5:26 pm
Hi Natarajan...
You are right that was an interview question i heard from my student and GDG is used to save the historical data like old program codes in the form of generations and for day to day transaction of banking projects....
Any thing i need to add or Iam compltely wrong about this.
You are right that was an interview question i heard from my student and GDG is used to save the historical data like old program codes in the form of generations and for day to day transaction of banking projects....
Any thing i need to add or Iam compltely wrong about this.
Anil-Sani
one example is..
there is a jcl which runs on a particular time and create report on profits gained by the company.
If you use normal file as output. we need to code that jcl , in such a way that.. first delete yesterdays file before executing program which actually creates the file with today data.
To not to loose prior days data, we can use gdg... so that .. we dont required to delete old file... and we can use gdg name in the step where program creates reports... it will create new generation.. without deleting old generation file..
so, the data fromprior reports also available.
for more information.. refer following...
http://www.mainframegurukul.com/srcsinc ... pter9.html
there is a jcl which runs on a particular time and create report on profits gained by the company.
If you use normal file as output. we need to code that jcl , in such a way that.. first delete yesterdays file before executing program which actually creates the file with today data.
To not to loose prior days data, we can use gdg... so that .. we dont required to delete old file... and we can use gdg name in the step where program creates reports... it will create new generation.. without deleting old generation file..
so, the data fromprior reports also available.
for more information.. refer following...
http://www.mainframegurukul.com/srcsinc ... pter9.html
Natarajan
Chennai
Chennai
-
- Member
- Posts: 10
- Joined: Sun Jul 04, 2010 5:26 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Additional points;
1. All datasets have the same name and system keep the track of adding new and retaining previous generations and deleting oldest successive generation.
2. We can use same JCL for executing without changing the file names.
3. The new GDG is coded as DSN=XYZ.ABCD(+1) and if we want to access the latest version just code like DSN=XYZ.ABCD(0).
1. All datasets have the same name and system keep the track of adding new and retaining previous generations and deleting oldest successive generation.
2. We can use same JCL for executing without changing the file names.
3. The new GDG is coded as DSN=XYZ.ABCD(+1) and if we want to access the latest version just code like DSN=XYZ.ABCD(0).
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
probably most important,
it removes the need to name files with dates.
when reading a gdg base (implicit concatenation of all existing/valid generations)
the order is newest to oldest.
though there is a utility from www.cbttape.o r g (idiot forum rules about outside links)
called GDGCOPY and it read the catalog and processed the files in oldest to newest.
Great for merging weekly SYSLOG dumps, etc.
in fact, cbttape has a wealth of information that you should perhaps incorporate in your class.
I also think it is cheesy of you to base class instruction (your job - your pay)
on free forum input.
but, nice of you to be honest about it.
it removes the need to name files with dates.
when reading a gdg base (implicit concatenation of all existing/valid generations)
the order is newest to oldest.
though there is a utility from www.cbttape.o r g (idiot forum rules about outside links)
called GDGCOPY and it read the catalog and processed the files in oldest to newest.
Great for merging weekly SYSLOG dumps, etc.
in fact, cbttape has a wealth of information that you should perhaps incorporate in your class.
I also think it is cheesy of you to base class instruction (your job - your pay)
on free forum input.
but, nice of you to be honest about it.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page