Use the <vars> tag to extract values of a specified type, size, and offset from a call parameter. You can then refer to the extracted values in the <rep> and <hc> tags using the %var_name notation.
The <arg> subtag characterizes the argument of interest. Attributes are:
Additional attributes for PL/I are:
Supported data types are described in the language-specific sections below.
Suppose a call to a database-entry API looks like this:
CALL 'DBNTRY' USING DB-USER-ID
DB-XYZ-REQUEST-AREA
XYZ01-RECORD
DB-XYZ-ELEMENT-LIST.
If the second parameter contains a 3-character table name in bytes 6-8, the following definition extracts the name for use as the right end of a relationship:
<vars>
<arg var='TableName'
param='2'
type='auto'
offset='5'
size='3'/>
</vars>
<rep>
<rel>
<target type='TABLE'
name='%TableName'/>
.
.
.
</rel>
</rep>