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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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