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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm


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