Please enable JavaScript to view this site.
From version 7.0.00 - It is possible to include up to 25 additional attachments by writing to a Temporary Attachment file in QTEMP called @OUTDAT.
We provide a sample source program called GETMULTATT which you will find in source file QUSRTOOLLE in library CPPD.
The file @OUTDAT is not externally defined but is structured as follows:
Field Name |
From Pos |
To Pos |
Length |
Description |
@ATName |
1 |
68 |
68 |
This can be used to rename the file when the attachment is added to the email. By default the filename is used. |
@ATPath |
69 |
324 |
256 |
The path to the attachment on the IFS e.g. /cppd/TDS/Terms_01.pdf |
@ATDel |
325 |
325 |
1 |
This value determines whether or not to keep the original file. Each attachment is copied to the /cppd/email/ folder when the email is created. If you were attaching say Terms & Conditions then you would want to keep this file and specify an 'N' here. If you were attaching a file just for this email you may wish it to be moved and not copied to the /cppd/email/ folder, in which case you would leave this entry blank. |
Example code definition
*
F@OUTDAT O F 325 DISK
*
* @OUTDAT output email attachments.
D @DAT DS
D @ATName 1 68
D @ATPath 68 324
D @ATDel 325 325
Note: If you write more than 25 entries to this file they will be ignored.