Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] SREG in SQL Where Clause
Go
New
Search
Notify
Tools
Reply
  
[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, 2013Reply With QuoteReport 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, 2012Reply With QuoteReport This Post
  Powered by Social Strata  
 

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

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.