Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Creating GDG Header

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
rahul kapadia
Currently Banned

New User


Joined: 17 May 2008
Posts: 9
Location: hyderabad

PostPosted: Mon May 19, 2008 4:06 am    Post subject: Creating GDG Header
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
References
PostPosted: Mon May 19, 2008 4:06 am    Post subject: Re: Creating GDG Header Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1142
Location: At my desk

PostPosted: Mon May 19, 2008 4:17 am    Post subject:
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    Post subject: Reply to: Header
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

Global Moderator


Joined: 23 Nov 2006
Posts: 7518
Location: 221 B Baker St

PostPosted: Mon May 19, 2008 11:05 am    Post subject:
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 D.

Senior Member


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

PostPosted: Mon May 19, 2008 11:10 am    Post subject:
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
Moved: Mon May 19, 2008 8:29 pm by Frank Yaeger From DFSORT/ICETOOL to JCL
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1