Preventing the copying of spooled file attribute USRDFNOPT when respooling AFP

When the AFP respool function is done, PSF copies the User Defined Option (USRDFNOPT) spooled file attribute from the original spooled file to the new AFP spooled file. If the original spooled file is split into multiple respooled files, then each of the respooled files contains the USRDFNOPT spooled file attribute of the original spooled file. If you want to prevent the User Defined Option from being copied, you can do so.

If you want to prevent User Defined Options from being copied by PSF to the respooled files, you can do so in a way that is system-wide. Enter the following command.

CRTDTAARA DTAARA(QUSRSYS/QPSFVALS) TYPE(*CHAR) LEN(3) VALUE('NNN')  AUT(*USE)

PSF examines the third character of the data area to determine whether USRDFNOPT is copied. If the value of the third character is 'N', then USRDFNOPT is not copied. If the value is 'Y', any other character, or the data area does not exist, then PSF copies USRDFNOPT.

If you are currently using the QUSRSYS/QPSFVALS data area for another PSF function and want to turn off the copying of USRDFNOPT, you can do so by entering the following command.

CHGDTAARA DTAARA(QUSRSYS/QPSFVALS (3 1)) VALUE(N)

If you want to turn on the copying of USRDFNOPT, use the following command.

CHGDTAARA DTAARA(QUSRSYS/QPSFVALS (3 1)) VALUE(Y)