Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between GDG and PS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vijaynedunuri
Warnings : 1

New User


Joined: 11 Jun 2006
Posts: 10

PostPosted: Thu Jun 29, 2006 4:54 pm    Post subject: Difference between GDG and PS file
Reply with quote

Can anybdy tell me what is the difference between GDG and PS file With an example?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jun 29, 2006 6:36 pm    Post subject:
Reply with quote

PS is a regular sequential (flat) file. Look here for explanation about GDG.

O.
Back to top
View user's profile Send private message
shekhar1s

New User


Joined: 13 Apr 2006
Posts: 14
Location: USA

PostPosted: Thu Jun 29, 2006 9:25 pm    Post subject: Re: Difference between GDG and PS file
Reply with quote

GDG is the Generation Data Groupwhich is used to provide the functional and Chronological relationship among the geneartions.
In simple word it is used to take the back up in real time.
Suppose u r executing a program and printing its output in a simple flat file (PS file) and if again after some days u need to run the program and will print its output in the same file or in a different file but here u need to change the output file, when u print the output in the same PS file ur preveous data will be lost as it will over write all the information and if u r printing in some other file then u have to create new PS file... now suppose if u r executing ur program for 50 times then u have to create 50 seperate PS file so that u will not lose any info.

When u will use the GDG for storing the output info then u need not to create new GDG for new info only one GDG u can create and it will automatically creates a new generation whenever u executes the program, it contains maximum 255 generations.
If ID.GDG.FIN is the GDG then in ur JCL u just need to give this GDG with (+1) for creating a next generation.
i.e. ID.JGDG.FIN(+1) when u open this generation it looks like ID.JGDG.FIN.G0001V00

Regards
Shekhar
S2Tech, hyd
Mobile:9885542099
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us