Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
List all the datasets when a userid is provided

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
anand_smail

New User


Joined: 05 Jun 2005
Posts: 9

PostPosted: Wed Apr 25, 2007 3:10 pm    Post subject: List all the datasets when a userid is provided
Reply with quote

Hi,
Can anybody help me with my requirement ?
I will be giving a user id as input and in the output I need a file which should have each
file name and its creation date along with it.

For example:
If the input user id is ABCD and there are only 2 datasets present i.e.
1)ABCD.FILE1 (PS)
2)ABCD.FILE2 (PO)

Then I should get in the output both the PS & PO datasets along with their creation date. The output should look like this

ABCD.FILE101/01/2007.
ABCD.FILE201/01/2007.

Please help me out with this.

Thanks,
Anand
Back to top
View user's profile Send private message
References
PostPosted: Wed Apr 25, 2007 3:10 pm    Post subject: Re: List all the datasets when a userid is provided Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3014
Location: Charlotte,NC USA

PostPosted: Wed Apr 25, 2007 3:37 pm    Post subject: Re: List all the datasets when a userid is provided
Reply with quote

Please post the code you have so far, and let us know where you are having a problem.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2443
Location: italy

PostPosted: Wed Apr 25, 2007 3:56 pm    Post subject: Re: List all the datasets when a userid is provided
Reply with quote

Hi !

depending on the environment You could

1 -issue a "LISTC" command trapping the output
quick and dirty

2- use the IGGCSI00 catalog interface routine
quite sophisticated

3- running under the ISPF umbrella use the library management services
"LMDLIST"

solution number 3 in interactive mode gives You a ready to use service to
display on the screen a filtered dataset list

from an operating system point of view a first level qualifier is just that...
a first level qualifier...

but You should be aware of the implications of a security manager if You plan to further process the dataset list that You create

regards

e.s
Back to top
View user's profile Send private message
Devzee

Senior Member


Joined: 20 Jan 2007
Posts: 714
Location: Hollywood

PostPosted: Thu Apr 26, 2007 6:15 am    Post subject:
Reply with quote

Use IDCAMS utitlity to get dataset information, and then write small utility to read the IDCAMS sysprint output to get the dataset name and creation date.

IDCAMS
Code:

LISTC LVL(ABCD) HISTORY
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1