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
 

 

How to list datasets with particular mask

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
purushoth_jp

New User


Joined: 12 Dec 2004
Posts: 22

PostPosted: Sat Feb 24, 2007 5:33 pm    Post subject: How to list datasets with particular mask
Reply with quote

All-
Is there is any way to list out all the dataset in a particular mask and to pick up the latest dataset. if so please let me know. thanks in advance.

for example.
i want to list out the datasets in this mask (C.CI.V010.C*.R01) and to pick up the latest dataset through REXX is there is any way?

to be more clear, if suppose im browsing this mask in ISPF 3.4 option. Let us assume that I'm getting 4 datasets

C.CI.V010.C8368.R01 MIGRAT2
C.CI.V010.C8369.R01 PBP248
C.CI.V010.C8370.R01 PBP168
C.CI.V010.C8371.R01 PBP191

then i want the latest dataset (C.CI.V010.C8371.R01) to be displayed in my screen through REXX.
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sat Feb 24, 2007 7:58 pm    Post subject:
Reply with quote

The best method would be the ISPF service LMDLIST, which accepts "mask" in the LEVEL parameter.

O.
Back to top
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 85
Location: Stockholm, Sweden

PostPosted: Sun Mar 04, 2007 7:06 pm    Post subject: Re: How to list datasets with particular mask
Reply with quote

Summat like...
Code:
/*REXX(LM)*/                                             
ARG dsmask .                                         
ADDRESS ISPEXEC                                     
"LMDINIT LISTID(LI) LEVEL("dsmask")"                 
IF( RC<>0 )THEN EXIT RC                             
"LMDLIST LISTID(&LI) GROUP(TEMPNAME) OPTION(SAVE)"   
"LMDFREE LISTID(&LI)"                               
"BROWSE DATASET(TEMPNAME.DATASETS)"

passed the mask as an argument?
Code:
LM C.CI.V010.C*.R01

Adjust the code if you want the mask to follow standard TSO/ISPF naming conventions - ie no quote prepends the SYSPREF value.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm


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