IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

to write the names of gdgs in a flat file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Sep 12, 2007 1:23 pm
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
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
Reply with quote

can anyone please help me in this.

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

Global Moderator


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

PostPosted: Wed Sep 12, 2007 5:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top