Please enable JavaScript to view this site.
From v7.0.00 - It is possible to include up to 25 additional attachments by writing to a Temporary Attachment file in QTEMP called @OUTDAT. Each additional attachment is copied / moved, depending on the Delete flag, to the /cppd/email folder with a unique name (unless you have changed the data area EMLATTPTH to point to a different folder).
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 | Attachment name - 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 | Attachment path - The path to the attachment on the IFS e.g. /cppd/TDS/Terms_01.pdf | 
| @ATDel | 325 | 325 | 1 | Delete flag - 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.
 
	