FNTUDR Functions(3.2)
The functions described below operate on UDRs of type FNTUDR.
 The value in an FNTUDR
is a delimited string, representing file system paths and filenames.
The FNTUDR types are usually used in two different cases:
- To create a dynamic path and filename for the output file from a disk oriented forwarding agent. The path and filename is created in APL using any APL strings. The path is defined relative to the configured output directory path for the agent.
- To group output data using a disk oriented forwarding agent set to expect input of
MultiForwardingUDR
 type. TheÂMultiForwardingUDR
has two fields. The first contains the data that will be written in the output file. The second contains filename and path specified by the FNTUDR. Both fields are mandatory unless the Produce Empty Files check box is selected in the agent, in this case the data field is not required.
Simply put, FNTUDR is a filename including directory or path if applicable, while MultiForwardingUDR contains the actual data or content to send plus the filename and path to write to.
For further information about using the MultiForwardingUDR
, including APL code examples, refer to the respective file based forwarding agent documentation.
Example - How an FNTUDR is constructed
The following APL code shows how a FNTUDR
is constructed. You set up a path (directory + filename) relative to the configured output directory path for the agent. The path is built up by adding components separated by "DirDelimiter
". For example:
fntAddString(fntudr, "folder"); fntAddDirDelimiter(fntudr); fntAddString(fntudr, "folder"); fntAddDirDelimiter(fntudr); fntAddString(fntudr, "filename");
fntAddString
The fntAddString
function appends a text string to the specified FNTUDR
.
void fntAddString( FNTUDR fntudr, string str, int size, (optional) string padding, (optional) boolean leftAlignment (optional) )
Parameter | Description |
---|---|
| The |
| The string to be added. If the string is null a runtime error will occur. The string can be extended or truncated if the Note! Do not include directory delimiters, for example "/", in the string. To add delimiters, use the |
| The optional parameter If the |
| The optional parameter |
| The optional parameter |
Returns | Nothing |
fntAddDirDelimiter
The fntAddDirDelimiter
function adds a directory delimiter to the end of the FNTUDR
.
void fntAddDirDelimiter(FNTUDR fntudr)
Parameter | Description |
---|---|
| The |
Returns | Nothing |