Try the Below sample Code :
Line1 = 'pro=hash_lookup, hashfld="SEQ_KEY", '
Line2 = 'source="FIRST_NM", rep="FNAME_UPPER", '
Line3 = 'id=STDM_LOOKUP.NAME_MASK_LOOKUP, lib=ORACLE, conn=<DB_NAME>, '
Line4 = 'user=<LOOKUP_USERID>, pass="<LOOKUP_TBL_PWD>", '
Line5 = 'flddef1=(name=FIRST_NM, dt=wvarchar_sz), '
Line6 = 'flddef2=(name=FNAME_UPPER, dt=wvarchar_sz)'
mask_parms_hash = Line1..Line2..Line3..Line4..Line5..Line6
maskfxname1 = optim.mask(fxname1, mask_parms_hash)
fxname1 is the Source, where the data to be masked optim.target.setcolumnvalue(maskfxname1)
We use Designer to update the PROC. But now sure , if it works directly with Classic flavor. But this is the way to use LOOKUP in LUA.
Thanks,
Joseph R
------------------------------
Joseph Jeba Kumar Ravindran
------------------------------
Original Message:
Sent: Thu April 25, 2019 03:27 PM
From: Tammy Forlenza
Subject: Example optim.mask() with LUA using lookup function Optim LUW
Has the OP or anyone else actually been able to perform a HASH_LOOKUP from a LUA script using Optim Classic?
I have not been able to get any of the samples given in this thread to work nor have I been able to get anything to work using the existing documentation.
------------------------------
Tammy Forlenza
------------------------------