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
 
listing all the file names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: listing all the file names
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

Senior Member


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

PostPosted: Thu Dec 18, 2008 2:53 am    Post subject: Reply to: listing all the file names
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: 1288
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 10:23 am    Post subject: Reply to: listing all the file names
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

Site Director


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

PostPosted: Thu Dec 18, 2008 10:32 am    Post subject:
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    Post subject: Reply to: listing all the file names
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: 1288
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 11:21 am    Post subject: Reply to: listing all the file names
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: 1288
Location: Chennai, India

PostPosted: Thu Dec 18, 2008 11:22 am    Post subject: Reply to: listing all the file names
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

Site Director


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

PostPosted: Tue Dec 23, 2008 3:30 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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