With V5R2 and above, you can use the CHGSPLFA command to set the user defined data of a spool file. 
 
For example: To set the To email address and the subject line, type:
 
CHGSPLFA FILE(QSYSPRT) USRDFNDTA('SUBJ:This is a test~MAILTO:support.rjs@helpsystems.com;info.rjs@helpsystems.com~')
 
For example: To set only the To email address, type:
 
CHGSPLFA FILE(QSYSPRT) USRDFNDTA('MAILTO:support.rjs@helpsystems.com;info.rjs@helpsystems.com~')
 

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016