View previous topic :: View next topic
|
Author |
Message |
rahul kapadia Currently Banned New User
Joined: 17 May 2008 Posts: 9 Location: hyderabad
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
rahul kapadia Currently Banned New User
Joined: 17 May 2008 Posts: 9 Location: hyderabad
|
|
|
|
i want to do it with jcl, can you please tel me the header and trailor functions...
thanks
rahul. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|