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  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Global Variable in DBMS SQL flow in Datamigrator

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Global Variable in DBMS SQL flow in Datamigrator
 Login/Join
 
Platinum Member
posted
Hai

using DMC gen 833, release 81M
Because of a rather complicated query, I am using a DBMS SQL flow.
As part of the query I coded this DB2 Common Table Expression:

DAG
(DAG_KEY)
AS
(SELECT DAG_KEY
FROM GWSDDBA5.GWTB403
WHERE DAT = '2010-09-09')

This is accepted and works fine. But when I replace the date field with a global variable

DAG
(DAG_KEY)
AS
(SELECT DAG_KEY
FROM GWSDDBA5.GWTB403
WHERE DAT = '&&WV_VRWRKDAT_DT.EVAL')`

I get an error message saying: Cannot parse DBMS SQL

Why is that?

I also tried

&&WV_VRWRKDAT_DT
'&&WV_VRWRKDAT_DT'
&&WV_VRWRKDAT_DT.EVAL

but nothing works

regards
Ron

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS AppStudio 8.2.04
WebFocus Datamanagement Console 8.1M
DMC
 
Posts: 115 | Registered: August 29, 2014Report This Post
Virtuoso
posted Hide Post
Can you add a line in the very top of the code that says -SET &ECHO=ALL;

so we can see what code is being sent to DB2?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Is suppose you mean adding it in the Text View.
I already get the error when saving the query, so without running.

But let me prepare some testdata, then change the code in text View, run and come back to you. Will be somewhere tomorrow (different timezone Smiler)

Regards


WebFOCUS AppStudio 8.2.04
WebFocus Datamanagement Console 8.1M
DMC
 
Posts: 115 | Registered: August 29, 2014Report This Post
Virtuoso
posted Hide Post
It'd be also helpful to know the exact error and how you populate the value for &&WV_VRWRKDAT_DT and what's the format of DAT in DB2.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Guru
posted Hide Post
Support for global variables in a DBMS SQL Flow was added to 7.7.08M (aka 8203m) gen 1349. Please apply the latest maintenance.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Global Variable in DBMS SQL flow in Datamigrator

Copyright © 1996-2020 Information Builders