Download User's Guide

Transcript
<:CURUSERHOME:>
The home directory of the current user. The home directory
is taken from the HOMEDIR attribute of the user profile.
<:OWNUSEREMAIL:>
The email address of the user profile that owns the spooled
file. The email address is the SMTP email address of the
user from the system directory.
<:OWNUSERNAME:>
The name of the user profile that owns the spooled file. The
name is derived from the information held for the user in
the system directory.
<:OWNUSERHOME:>
The home directory of the user profile that owns the spooled
file. The home directory is taken from the HOMEDIR
attribute of the user profile.
Example:
CVTSPLPDF
FROMFILE(QSYSPRT)
TOSTMF(‘<:fromfile:>_<:spljob:>_<:spluser:>_<:spljobnbr:>_<:splnbr:>.pdf’)
Here the CVTSPLPDF command is being applied to a spooled file called QSYSPRT.
The name of the stream file to be generated will be derived from various spooled file
attributes to give a unique name such as:
QSYSPRT_INVOICES_QSYSOPR_123456_2.pdf
Example:
CVTSPLPDF
FROMFILE(QSYSPRT)
EXITPGM(*VAR)
EXITPGMPRM(*POS)
EXITPGMPOS((1 7 10 40))
EMAIL(*YES)
EMAILTO((‘<:exitpgmpos1:>’))
Here the CVTSPLPDF command is being applied to another spooled file called
QSYSPRT. No exit programs are to be called, but exit program parameters are
defined for the purposes of using them as variables (EXITPGM(*VAR)). The text item
on page 1, line 7, column 10 for 40 characters is extracted and used as the email
address to which the spooled file should be sent.
Page: 46