Sounds like the sort of thing I use the $HMLIST TSO command for.
It has an ODS operand to direct the output into a data set.
Source in CBT file 134 - update it with the dsname of your MCDS.
There is also a $HBLIST command to get listings out of the BCDS also.
There is also a $HMLISTW command with wider output to allow for
more columns of information.
I see I have a SAS job to add up the sizes from the output:
//STEP1 EXEC SAS
//SYSIN DD *
DATA _NULL_;
RETAIN KBTOT 0;
INFILE HMLIST END=LAST;
INPUT MIGDT REFDT MIGCT SIZ ORG $ RFM $ BLK LVL $ NAME $;
KBTOT = KBTOT + SIZ;
IF LAST THEN PUT KBTOT;
/*
//HMLIST DD DSN=userid.HC.DATA,DISP=SHR
The data set is produced by
$HMLIST L(dsprfx) D ODS(HC)
where dsprfx need not end on a qualifier boundary.
(The 'D' says "details" - otherwise just the dsnames are output.)
Hmm, might need to do a
C '<' ' ' ALL
in ISPF Edit first due to my limited SAS expertise
if any data sets are smaller than 1KB but bigger than 0 bytes.
Cheers,
Greg
Chase, John wrote:
> Hi, All,
>
> We have need to identify how much DASD space would be required to recall "X"
> number of datasets, but do not need to recall them all at once. Does
> anybody know whether:
>
> (1) The required space is stored somewhere (e.g., in the MCDS); and
> (2) That information is available (non-OCO),
>
> so we can avoid having to recall all "X" number of datasets?
>
> TIA,
>
> -jc-
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html