MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Listing Datasets

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
sivasathivel
Beginner


Joined: 16 Sep 2004
Posts: 11
Topics: 8
Location: India

PostPosted: Fri Dec 03, 2004 3:56 am    Post subject: Listing Datasets Reply with quote

Hi,

My intenion is to list all datasets, given a first qualifier. I used LISTDS in Rexx for the Purpose. When, I did so, all migrated Datasets are recalled before lisiting. But I want to just list the datasets without being recalled and also the information on whether it is migrated or not? How to do this.....
_________________
Thanks and Regards,
Siva Sathivel K
India
Back to top
View user's profile Send private message Visit poster's website
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri Dec 03, 2004 4:18 am    Post subject: Reply with quote

please follow these steps

1)address ispexec "lmdinit listid("daid") level("hlq.%%")"
address ispexec "lmdlist listid("daid") option(SAVE) group(OUT)"

this will create the list of datsets volume details in a datset
2)search the datset OUT.DATASETS for word migrate
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Fri Dec 03, 2004 4:27 am    Post subject: Reply with quote

sivasathivel,

If you want to list datasets in a panel use LMDDISP. If you want to capture the list in a dataset use LMDLIST

Code:

ISPEXEC LMDDISP LISTID(dslist-id)                   
                {VIEW(VOLUME|SPACE|ATTRIB|TOTAL)}   
                {CONFIRM(YES|NO)}                   
                {PANEL(panel-name)}                 


Code:

ISPEXEC LMDLIST LISTID(dslist-id)         
                {OPTION(LIST|FREE|SAVE)} 
                {DATASET(dataset-var)}   
                {STATS(YES|NO)}           
                {GROUP(group)}           


Before u use either of these commands u need invoke LMDINIT command (pasing the dataset name/qualifier with wild-cards) which returns u a DSLIST-ID. U need to pass this DSLIST-ID to LMDLIST/LMDDISP. Also MAKE SURE u use LMDFREE to free the ID to avoid any potential contentions.

Please go thro the following linsk:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPSER04/2.27?DT=20000712152926

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPSER04/2.31?DT=20000712152926

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Dec 03, 2004 9:24 am    Post subject: Reply with quote

for non-ISPF solution, see 'SYS1.SAMPLIB(IGGCSIRX)'
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group