View previous topic :: View next topic |
Author |
Message |
sivasathivel Beginner
Joined: 16 Sep 2004 Posts: 11 Topics: 8 Location: India
|
Posted: Fri Dec 03, 2004 3:56 am Post subject: Listing Datasets |
|
|
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 |
|
 |
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Fri Dec 03, 2004 4:18 am Post subject: |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Fri Dec 03, 2004 4:27 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Dec 03, 2004 9:24 am Post subject: |
|
|
for non-ISPF solution, see 'SYS1.SAMPLIB(IGGCSIRX)' |
|
Back to top |
|
 |
|
|