Hi Viktorija
It would help a lot if you could show us the CARLa code that you want to use, even if the code doesn't work yet. A lookup has a base and a target, that means, resp., the field before and the field after the colon. Do you want to use the table name as base, or as target?
An alternative to lookup is a defined field, that you define in a separate member. Something like
define type=db2_table critical_table("CRIT",4,hb) boolean where name=(,
abc.**.
efg.klm.*,
)
In your type=db2_table compliance check you would reference the field name critical_table as a normal field.
------------------------------
Rob van Hoboken
------------------------------
Original Message:
Sent: Tue March 28, 2023 10:54 AM
From: Viktorija Kulbaciauskiene
Subject: Lookup for db2 tables
Hello. Facing issues with lookup for db2 tables. I'd like to provide a list of db2 tables for compliance check and using deftype in formula basefield:type.keyfield.targetfield
I'm following CARLa Command Reference documentation page 63, example:
deftype type=email
define type=email user as word(record,1,' ')
define type=email address as word(record,2,' ')
SMFUSER:EMAIL.USER.ADDRESS
Unfortunately, struggling to pick up the names of db2 tables for both db2_access and db2_table types.
Is this something related to above types not available for lookup function?
------------------------------
Viktorija Kulbaciauskiene
------------------------------