Previous Topic: Email ParametersNext Topic: Text PDF/PDFL/HTML/RTF Wrapping


Replacement Variables

You can use the following replacement variables anywhere in the FROM, TO, CC, BCC, SUBJECT, and FILENAME parameters and anywhere in a HTML skeleton to have appropriate unique names dynamically generated:

&UID

Print file creator's userid.

&NOD

Print file destination name.

&FNM

Print file name.

&FNO

Print file number.

&PRM

Print file print-mode.

&HST

Origin host name.

&DAY

Current date in Dyymmdd format.

&JUL

Current date in Julian Dyyddd format.

&TIM

Current time in Thhmmss format.

&JOB

Print file creator's Jobname.

&JID

Print file creator's Job, STC or TSU id.

&JST

Print file creator's job step name.

&PST

Print file creator's proc step name.

&DDN

Print file creator's DD name.

&CLS

Print file class.

&TOD

Current time in Thhmmss format.

&DAT

Include the current date in 'mm dd, yy' format. E.g. March 7, 2006.

&DAW

Include the current weekday in 'aaa, dd mmm, yyyy' format. E.g. Mon, 28 Mar 2006.

&MSG

Include message text specified inline or by using the OUTPUT statement ADDRESS or USERDATA parameters.

If first message line starts with a '<' the message is assumed to be in HTML format. If not, a simple line by line HTML formatting is performed.

If message starts with '<HTML>' it is assumed to be a completely formatted HTML message and no HTMLIB FORM search will be performed.

&LNK

Include Web Link name and URL to the report data.

You can select to include only part of the replacement variables by specifying offset and length in brackets after the replacement variable. For example:

&UID(1,4)

specifies that only characters 2 through 5 of the file creator's userid are to be used.

If you do not specify email parameters, the file is sent by email to the file creator's mailbox by default. The default values are:

FROM=&UID@&TCPPRT
TO=&UID@&TCPPRT
SUBJECT=File:99999 name: ccccccc - programmer's name field
FILENAME=&FNM.&PRM