This section covers the IFORMNG2/NG2CPDFEML command on the IBM i platform. In order to run this command or the IFORMNG2/NG2CMD command you first need to ensure, that the prerequisites are met.
The NG2CMD command is the most generic command, where this command, NG2CPDFEML is more limited and has been prepared to generate an email with an attached PDF file.
The command runs its function via a referenced workflow, that you select via the NG2 endpoint (COMMAND) field. The NG2 Endpoint value must the the path of a
workflow that is specified for AS400 Command input.
The NG2CPDFEML command looks like the screens below.
The parameters are explained here.
Merge spooled file and overlay (NG2CPDFEML)
Type choices, press Enter.
NG2 Endpoint . . . . . . . . . . COMMAND
Spooled file . . . . . . . . . . FILE *NONE Name, *NONE Job name . . . . . . . . . . . . JOB * Name, * User . . . . . . . . . . . . . Name Job number . . . . . . . . . . 000000-999999 Spooled file number . . . . . . SPLNBR *ONLY Number, *ONLY, *LAST Job system name . . . . . . . . JOBSYSNAME *CURRENT Name, *CURRENT Spooled file created: CRTDATE Creation date . . . . . . . . *ONLY Date, *ONLY Creation time . . . . . . . . Time, *ONLY Code page . . . . . . . . . . . CODPAG *INPUT Number, *INPUT To stream file . . . . . . . . . TOSTMF
More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
Merge spooled file and overlay (NG2CPDFEML)
Type choices, press Enter.
Attachment name . . . . . . . . ATTACHNAME
Email subject . . . . . . . . . SUBJECT
Email from . . . . . . . . . . . MAILFROM
Email to . . . . . . . . . . . . MAILTO
_
More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
Merge spooled file and overlay (NG2CPDFEML)
Type choices, press Enter.
Email CC . . . . . . . . . . . .
Email BCC . . . . . . . . . . .
Email template . . . . . . . . .
Template . . . . . . . . . . . .
More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|
Merge spooled file and overlay (NG2CPDFEML)
Type choices, press Enter.
P1 . . . . . . . . . . . . . . . PARM1
P2 . . . . . . . . . . . . . . . PARM2
P3 . . . . . . . . . . . . . . . PARM3
P4 . . . . . . . . . . . . . . . PARM4
P5 . . . . . . . . . . . . . . . PARM5
Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
|