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

listing all the file names


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vemsanvs

New User


Joined: 26 Aug 2008
Posts: 2
Location: Hyderabad

PostPosted: Thu Dec 18, 2008 12:44 am
Reply with quote

Hi,i want to list out all the file names that are present in the system by giving the first 4 nodes. for example, if i give abc.def.ghi.ffb then it should list all the files starting with abc.def.ghi.ffb.* but it should not list the generations if any GDG exists. it should list only only the base gdg. Please let me know the syntax how to solve this problem
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Dec 18, 2008 2:53 am
Reply with quote

I am not sure how to GDGs are listed here, but I think you want to use the LISTCAT command:
Code:
LISTCAT LEVEL(abc.def.ghi.ffb)
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 10:23 am
Reply with quote

Vem,

Quote:
Hi,i want to list out all the file names that are present in the system by giving the first 4 nodes


Why don't you try viewing the datasets by giving just the 4 nodes in 3.4 ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Dec 18, 2008 10:32 am
Reply with quote

Because that would include all of the cataloged generations, not just the base.
Back to top
View user's profile Send private message
vemsanvs

New User


Joined: 26 Aug 2008
Posts: 2
Location: Hyderabad

PostPosted: Thu Dec 18, 2008 11:11 am
Reply with quote

Hi, thank you for the quick response.
The problem if we give in 3.4 is the number of files are huge. so the following abend is coming. ISPDTSRS received return code 4 from GETMAIN.

When i am giving the listcat level(abc.def.ghi.ffb), it is showing as invalid option
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 11:21 am
Reply with quote

Quote:
Because that would include all of the cataloged generations, not just the base.


Thanks Dick.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 11:22 am
Reply with quote

Vem,

Quote:
When i am giving the listcat level(abc.def.ghi.ffb), it is showing as invalid option


If nothing works out go for REXX. Search the REXX forum for LMDINIT LISTID and you would get some working tested code for your requirement.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Dec 23, 2008 3:30 am
Reply with quote

Hello,

Quote:
When i am giving the listcat level(abc.def.ghi.ffb), it is showing as invalid option
Is this now working?

If not, post the jcl, control statement, and the complete diagnostic info presented by the problem run.

Someone here will be able to clarify.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
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
Search our Forums:

Back to Top