Data Transformation Engine Functions and Expressions Reference Guide
Chapter 3 - Function Reference GETRESOURCENAME
Functions and Expressions Reference Guide
123
GETRESOURCENAME
The GETRESOURCENAME function returns the adapter source or target command of
a specified card object. Without an argument, it returns the adapter command
associated with the active source or destination.
Syntax
GETRESOURCENAME ([ single-simple-object-name ])
Meaning
GETRESOURCENAME ([ card_for_which_resource_info_is_needed ])
Returns
This function returns a single-text-item.
With an argument, this function returns the source or destination name that is
associated with the card. Without an argument, returns the source or
destination name associated with the active source or destination.
Example
GETRESOURCENAME (OrderFile)
If the card OrderFile is associated with the data file, c:\
<install_dir>\order.txt, the
GETRESOURCENAME function returns c:\
<install_dir>\order.txt.
Uses
Use
GETRESOURCENAME in a component or map rule when you need to know
the name of a source or destination.
Related Functions
GETDIRECTORY, GETFILENAME