GDG Related

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

GDG Related

Post by vishu1484 » Thu May 08, 2008 5:21 pm

Hi,

Premium data for the month is saved in a GDG file, so at the end of the year we have 12 version of premium file(one for each month). In year end i would like to generate a report for entire year's premium date. So can we use that 12 version of GDG together in one JCL and create whole year report together or any other option. which i can try.
Regards
Vishal

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu May 08, 2008 5:37 pm

do you need to differentiate the month of premium data?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

Post by vishu1484 » Thu May 08, 2008 5:48 pm

Yes i need to differentiate that also...
Regards
Vishal

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu May 08, 2008 6:16 pm

does each record contain some kind of date?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

Post by vishu1484 » Fri May 09, 2008 9:07 am

Yes record contain dates of various month.
Regards
Vishal

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Fri May 09, 2008 11:10 am

since you have all required data in the records & all months records are same length, you can use all GDG files in one jcl step. If GDG contains only these 12 versions, you can use GDG base name instead of specifing 12 versions.

Let me know, if you have any other questions.

vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

Post by vishu1484 » Fri May 09, 2008 2:03 pm

So u mean to say that i can use that 12 version of GDG in one JCL step. One more thing, If i will convert that GDG in flat file and use than also its correct ?

Let me know. Thanks for your responce.
Regards
Vishal

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Fri May 09, 2008 4:00 pm

Correct. You can copy the data from GDG to flat file and use it.

vishu1484
Member
Posts: 12
Joined: Thu May 08, 2008 12:27 pm
Location: Mumbai

Post by vishu1484 » Fri May 09, 2008 4:29 pm

Thanks a lot krishna
Regards
Vishal

Post Reply

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



Other References
Mainframe Tools and others