Copying a Spool File to a Physical File

 
The CPYSPLRAW command can write to files in the IFS, including writing directly to a physical file. There might be special reasons for doing this, related to other applications.
Note: The CPYSPLRAW command requires the Report Converter library (RJSCONVERT) to be installed and licensed.
 
Note: The physical file needs to exist already.
  1. Create a physical file:

    CRTPF SOMELIB/SOMEFILE RCDLEN(80) MAXMBRS(*NOMAX) SIZE(*NOMAX)

  2. Copy the contents of a spool file to the file:

    CPYSPLRAW FILE(PROBLEM1) JOB(018869/VERN/QPADEV000F) SPLNBR(3) IFSFILE('/qsys.lib/somelib.lib/somefile.file/somefile.mbr')

 

Copying a Spool File to a User Space

Note: The user space will be created if it does not exist already.

  1. CPYSPLRAW FILE(PROBLEM1) JOB(018869/VERN/QPADEV000F) SPLNBR(3) IFSFILE('/qsys.lib/somelib.lib/someusrspc.usrspc')
 
You can use this technique with any of the conversion commands that copy to the IFS.
Still have questions? We can help. Submit a case to technical support

Last Modified On:
You don't have the appropriate permissions.
No, open a new Support Case