|
|
| 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 |
|
 |
References
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1199 Location: At my desk
|
|
|
|
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
Global Moderator
Joined: 23 Nov 2006 Posts: 8724 Location: 221 B Baker St
|
|
|
|
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 D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2219 Location: Phoenix, AZ
|
|
|
|
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 |
|
 |
Moved: Mon May 19, 2008 8:29 pm by Frank Yaeger From DFSORT/ICETOOL to JCL |
|
|