Focal Point
[CLOSED] SREG in SQL Where Clause

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/5787093076

April 30, 2014, 10:50 AM
ABailey
[CLOSED] SREG in SQL Where Clause
I am having no luck using the following SQL. The logs show the literal text SREG(filename)instead of the filename picked up by the file listener. Evaluate SQL is set to TRUE within the SQl object properties as well. Any help would be greatly appreciated.

update ETL_File_Expectations set LastArrival = GETDATE() where Product = 'APSoftware' and Filename = SREG(filename)

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
May 01, 2014, 09:13 AM
Srii
When you create the SQL DML statement, you can use named tokens to represent the values to be used in the statement.

For example:
Update ETL_File_Expectations set LastArrival = GETDATE() where Product = 'APSoftware' and Filename = '?fName'

Then in the user properties section of the agent, represent the values as name/value token pairs, as listed in the following table:

SREG Name/SREG Value
--------------------
fName/SREG(filename)