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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] SQL Object run file with dynamic name

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SQL Object run file with dynamic name
 Login/Join
 
Member
posted
I am trying to create system that can handle multiple files. I am trying to make the SQL object execute some dynamically generated code. I have tried 2 approaches, both which fail.

1) If I assign my dynamic file name in the variable SQLFILE and then I put file(SREG(SQLFILE)) the file command interprets SREG(SQLFILE) as a literal file name and fails.

2) If I try to read some SQL into a variable in a previous File object which I can later run in the SQL object, the FILE read inserts extra characters into the SQl command which causes it to fail.

Can this type of thing not be done? It seems basic to me so I am wondering if I am just applying the wrong thinking.

Thanks for your help.

This message has been edited. Last edited by: Tobar,


------
Livin' down on the cube farm. Left, right, right.

iWay 5.6
Windows
Excel, Tab-delimited, XML
 
Posts: 23 | Location: Minnesota | Registered: July 27, 2009Report This Post
Expert
posted Hide Post
Hi Tobar,

Please try this: add SREG(sregname) in the Statement window not (SREG(sregname)).

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Member
posted Hide Post
THe command I have in the statement window is
quote:
file(SREG(SQLFILE))

I think you didn't see the "file" in my original statement, correct?

I have an open ticket with iWay support on this. The work around I found is to use a single file containing
quote:
SELECT *
FROM ?TABLENAME
and then constructing the name in the variable TABLENAME. Not the best solution for all cases but works well here.


------
Livin' down on the cube farm. Left, right, right.

iWay 5.6
Windows
Excel, Tab-delimited, XML
 
Posts: 23 | Location: Minnesota | Registered: July 27, 2009Report 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] SQL Object run file with dynamic name

Copyright © 1996-2020 Information Builders