Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The COZZI - Email a SPOOL File (EMAILSPLF) command sends an existing SPOOL file using the Java SendMail API found in COZTOOLS SENDMAIL library. The SendMail library must be installed and configured in order for EMAILSPLF to function.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FROM | Send From | Character value, *PROPERTIES | Optional, Positional 1 |
TO | Send To (use & to extend) | Values (up to 300 repetitions): Character value, *NONE | Optional, Positional 2 |
SUBJECT | Email subject line | Character value, *SPLF, *NONE | Optional, Positional 3 |
SPLFNAME | Spooled file name | Name, *LAST | Optional, Positional 4 |
JOB | Job name | Single values: *, *CURRENT Other values: Qualified job name |
Optional, Positional 5 |
Qualifier 1: Job name | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
SPLNBR | SPOOL file number | 0-999999, *ONLY, *LAST, *ANY | Optional, Positional 6 |
FMT | SPOOL Format for email | *PDF, *TEXT | Optional, Positional 7 |
STMF | SPOOL File workfile directory | Path name, *NONE, *HOME | Optional, Positional 8 |
STMFNAME | IFS Stream file name | Path name, *SPLFNAME, *OUTQ, *SRLNBR, *USRDTA, *DATE, *FULL, *FULLSYS | Optional, Positional 9 |
STMFOPT | Replace IFS work file | *REPLACE, *CREATE | Optional, Positional 10 |
EMAILPARMS | Show additional email options | *NO, *YES | Optional, Positional 11 |
MSG | Message | Character value, *NONE | Optional, Positional 12 |
USER | Email User ID | Character value, *NONE, *FROM, *PROPERTIES | Optional, Positional 13 |
PWD | Email Password | Character value, *PROPERTIES, *NONE, *USER | Optional, Positional 14 |
SMTPSVR | SMTP server/relay | Path name, *PROPERTIES, *GMAIL, *GODADDY, *COMCAST | Optional, Positional 15 |
PORT | SMTP port | Integer, *AUTO, *PROPERTIES, 25, 80, 465, 587, 995, 3535 | Optional, Positional 16 |
Top |
Specifies the Sender of the email.
Top |
Specifies up to 300 email addresses to recieve this SPOOL file.
You can specify 300 values for this parameter.
Top |
Specifies the optional Subject line for the email.
Top |
Specifies the SPOOL File name to be emailed.
Top |
Specifies the fully qualified job name, user, number that created the SPOOL file being emailed. If *LAST is specified for SPLFNAME and SPLNBR parameters, the default for this parameter causes all jobs for the user running the EMAILSPLF command to be searched.
Single values
Qualifier 1: Job name
Qualifier 2: User
Qualifier 3: Number
Top |
Specifies SPOOL File number. When multiple entries for the SPLFNAME exist, use the SPLNBR parameter to identify which SPOOL file should be selected.
Top |
Specifies format of the SPOOL file when sent as an email attachment.
Top |
Specifies <...>
Top |
Specifies <...>
Top |
Top |
Top |
Top |
Specifies <...>
Top |
Specifies <...>
Top |
Specifies <...>
Top |
Specifies <...>
Top |
Example 1: Simple Command Example
EMAILSPLF KWD1(PARMVAL1)
This command <...>
Example 2: More Complex Command Example
EMAILSPLF KWD1(PARMVAL1) KWD2(PARMVAL2) KWD3(PARMVAL3)
This command <...>
Top |
*ESCAPE Messages
Top |