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 physical file needs to exist already.
- Create a physical file:
CRTPF SOMELIB/SOMEFILE RCDLEN(80) MAXMBRS(*NOMAX) SIZE(*NOMAX)
- 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.
- 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.
Last Modified On: March 23, 2020