I use code similar to this:
#rc = ListDSI("'"Strip(dsn)"' NORECALL SMSINFO");
If (#rc /= 0) & (sysreason /= 30)  Then
   Do
      <error processing here>
   End

<do your processing>
...

This gives me info on the dataset and on the SMS parameters used for a
file. The sysreason 30 says that the file is not SMS-managed. If you get a
sysreason 9 or 25, this indicates that the file is migrated and not
recalled due to the "NORECALL" setting.

If you use QuickRef, you can look up LISTDSI in the Z/OS REXX SYNTAX manual
to find all the return cods and sysreason codes.

Hope this gets you going in the right direction.

Billy

On Fri, Jul 17, 2015 at 8:15 AM, Mike Kovach <
[email protected]> wrote:

> I am processing a list of datasetnames and want to calculate the amount of
> space used for ONLY those files which are not MIGRATED.
> The program currently uses
>  R = LISTDSI ("'"FQSN'"')      where FQSN is the Fully Qualified Dataset
> Name
> Because there is no NORECALL parameter, each file gets RECALLED before
> continuing.  The overhead is terrible.
> LISTDSI will return "dataset is migrated" if NORECALL is specified and the
> dataset is currently Migrated.
>
> I appreciate your assistance.
> Mike Kovach
>
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



-- 
Thank you and best regards,
*Billy Ashton*

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to