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
Original Message:
Sent: Tue January 15, 2019 02:48 PM
From: Per Wallqvist
Subject: Example optim.mask() with LUA using lookup function Optim LUW
Hi,
does any one have an example on how to call the optim.mask(with Optim Data Privacy LOOKUP) from LUA in Optim LUW?
Documentation is not quite clear, or perhaps i haven't found the right one :)
I want to send a variable as the source value and get it back as variable.
Then i will do some more concatenation before setting the column value for the target.
I want to use it direct from Optim classic by putting it in to a column map procedure.
(We don't have the designer installed) I have manage to execute LUA code this way by exporting the column map procedure, edit the script (Remove all capitals on reserved words like String etc) and then import it again.
best regards,
Per
------------------------------
Per Wallqvist
------------------------------
#InfoSphereOptim
#Optim