Previous Topic: Convert Spooled File (YCVTSPLF)Next Topic: Technical Considerations


Retrieve Spooled File Attributes (YRTVSPLFA)

The YRTVSPLFA (Retrieve Spooled File Attributes) command can only be run from within a compiled CL program or module and allows the program to retrieve the attributes of a given spooled file. Similarly to IBM spooled file commands, the only required parameter is the spooled file name (although the job name and spooled file number are optional input parameters). All other parameters are output parameters that return values into defined CL variables. This command uses the QUSRSPLA API to retrieve the attributes for the specified spooled file.

The YRTVSPLFA prompt screen displays as follows: