Originally posted by: SystemAdmin
Please help with the format of the GETRESOURCEALIAS function?
I'm trying to get the name of a database from my resource registry file, and the Insert Function wizard is not exactly precise with the instructions:
Return the resource alias value specified in MRN (Resource Registry files).
Syntax:
GETRESOURCEALIAS (sinlge-text-expression, single-text-expression)
Meaning:
GETRESOURCEALIAS (single-text-expression, single-text-expression)
Returns a (single-text-item)
I've tried:
=DBQUERY ( SQL_Statement PGMSCallFields:Call_Results, "dbName.mdq", resourcelib->GETRESOURCEALIAS( "my.mrn", %my_database_name% ))
and
=DBQUERY ( SQL_Statement PGMSCallFields:Call_Results, "dbName.mdq", resourcelib->GETRESOURCEALIAS( "my.mrn", "%my_database_name%" ))
or even ... DBQUERY is supposed to resolve resource registry ..
=DBQUERY ( SQL_Statement PGMSCallFields:Call_Results, "dbName.mdq", "%my_database_name%" ))
And I still get a "Database not found" error when I build the map.
Thanks.
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange