Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

to write the names of gdgs in a flat file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Wed Sep 12, 2007 10:19 am    Post subject: to write the names of gdgs in a flat file
Reply with quote

Hi
say there are 2 files. Both the files are gdg versions jobs.

Now I have to write a Job C whose output, File C, must contain the names of those two gdg version(latest version). Can anyone help me as how to create File C in this.

Thanks in advance.
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Sep 12, 2007 12:02 pm    Post subject:
Reply with quote

Your post is not clearly understandable.

Are you trying to get the dataset name including gdg version number?
If so you can do listcat of all GDG version and select the last GDG version.
also you can get thru JFCB
Back to top
View user's profile Send private message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Wed Sep 12, 2007 1:14 pm    Post subject:
Reply with quote

i want the names of files (gdg files) written in a file through a flat file.

Like the names of the gdg file will always changs as the version will change
Thanks
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Sep 12, 2007 1:23 pm    Post subject:
Reply with quote

Mahua,

Quote:
i want the names of files (gdg files) written in a file through a flat file.

Not clear.

Quote:
Like the names of the gdg file will always changs as the version will change

I hope VERSION above is actually for GENERATION.
Back to top
View user's profile Send private message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Wed Sep 12, 2007 2:24 pm    Post subject:
Reply with quote

exactly, they are generations...........i want the names of the latest generations to be written in a flat file
Back to top
View user's profile Send private message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Wed Sep 12, 2007 4:56 pm    Post subject:
Reply with quote

can anyone please help me in this.

Thanks,
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Wed Sep 12, 2007 5:03 pm    Post subject: Reply to: to write the names of gdgs in a flat file
Reply with quote

Devzee already provided the answer. Use LISTCAT or read the JFCB.
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us