Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] SREG in SQL Where Clause

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SREG in SQL Where Clause
 Login/Join
 
Member
posted
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
 
Posts: 4 | Registered: March 20, 2013Report This Post
Silver Member
posted Hide Post
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)
 
Posts: 38 | Registered: April 13, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] SREG in SQL Where Clause

Copyright © 1996-2020 Information Builders