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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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