IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Creating GDG Header


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahul kapadia
Currently Banned

New User


Joined: 17 May 2008
Posts: 9
Location: hyderabad

PostPosted: Mon May 19, 2008 4:06 am
Reply with quote

Hi,

I have a gdg file with some records in it, i want to create a header on it in such a way that all the related records(corresponding to one group, say for e.g one classroom) can be accessed easily later depending upon the header, Can you please let me know how a header can be created and accessed....

Thanks,
rahul.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon May 19, 2008 4:17 am
Reply with quote

Do you want to do this with COBOL or is it simple enough for a sort to handle?

With COBOL, you would create control breaks and re-write the file....
With a sort, there are 'HEADER' and 'TRAILER' functions....

Can you expand on your requirement?
Back to top
View user's profile Send private message
rahul kapadia
Currently Banned

New User


Joined: 17 May 2008
Posts: 9
Location: hyderabad

PostPosted: Mon May 19, 2008 7:55 am
Reply with quote

i want to do it with jcl, can you please tel me the header and trailor functions...

thanks
rahul.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon May 19, 2008 11:05 am
Reply with quote

Hello,

What is a gdg header?
Quote:
i want to do it with jcl
JCL does not "create" headers (or anything else) - JCL executes programs.

This is in the COBOL part of the forum. Is this a COBOL question or something else?

If you post an example of what you want to do (show some data you have and the output you want), we will be better able to help. This will also help determine which part of the forum can best support your question.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon May 19, 2008 11:10 am
Reply with quote

Hi,

Please show some example of input records & the expected output for us to work on, BTW, if You need a JCL then rather appropriate forum is JCL instead of Mainframe COBOL, I guess.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Creating CSV file from Variable recs ... DFSORT/ICETOOL 11
No new posts Comparing Header and Trailer. DFSORT/ICETOOL 7
Search our Forums:

Back to Top