Focal Point
[Case Opened] Issues with using SAME_DB

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

October 15, 2014, 07:41 PM
Waz
[Case Opened] Issues with using SAME_DB
Has anyone has issues using SAME_DB multile times in a fex ?

I have a procedure where I create several temp tables with FORMAT SAME_DB PERSISTENCE GLOBAL_TEMPORARY.

The Db is Oracle.

Something in the creation of the second temp table clears the records in the first. Then the third clears the second and so on.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 15, 2014, 08:41 PM
Francis Mariani
Stupid question: do you have -RUN statements between each TABLE FILE statement?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 15, 2014, 09:38 PM
Waz
Should have added that, tried with and without -RUN

Also tried setting AUTOCOMMIT to ON FIN


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 16, 2014, 07:44 PM
StuBouyer
Have you tried using AS name?

i.e.

ON TABLE HOLD AS TAB_ONE FORMAT SAME_DB PERSISTENCE GLOBAL_TEMPORARY
...

ON TABLE HOLD AS TAB_TWO FORMAT SAME_DB PERSISTENCE GLOBAL_TEMPORARY

I have vague memories of doing this previously

Regards

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
October 16, 2014, 07:51 PM
Waz
Yes, they are unique names.

The process for SAME_DB issues a CREATE, it would have failed.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!