Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Creating GDG Header

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    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

CICS Guy

Senior Member


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

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

Site Director


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

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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 10 Tue Sep 05, 2017 4:24 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us