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] SQL PassThru to FORMAT FOCUS?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] SQL PassThru to FORMAT FOCUS?
 Login/Join
 
Expert
posted
Still not there yet... but, I closed it anyway... Frowner

How do I HOLD to a FORMAT FOCUS file directly from a SQL PassThru? I don't want to do a
TABLE FILE SQLOUT 
PRINT FIELDS...
ON TABLE HOLD AS MYDATE FORMAT FOCUS
END
as an intermediary step.

What I'm trying to recollect is the way to use SQL PassThru to hold the data and use my preexisting synonym.

Thanks in advance for thawing out this brain freeze. Doug ( This is me trying to thaw out Sweating )

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I don't believe that you can.

Why to you need a FOCUS db ?
Is there a large number of records ?


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
What I'm trying to recollect is the way to use SQL PassThru to hold the data and use my preexisting synonym.

I was going to use the DATA from the SQL PassThru and MY MFD via the "USE" command.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I think you will have to use:
SQL
.
.
.
;
TABLE FILE SQLOUT
.
.
.
ON TABLE HOLD AS ? FORMAT ?
END


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Thanks Waz,

I may need to go that way, but can't try it right now (no machine with the stuff I need for that)... I know that this works:
SELECT * FROM TABLENAME;
TABLE ON TABLE HOLD AS MY_DATA FORMAT ALPHA 
END
-RUN
is possible. How about this:
SELECT * FROM TABLENAME;
TABLE ON TABLE HOLD AS MY_DATA FORMAT FOCUS 
END
-RUN
... using a predefined MFD? I'll check this out in the morning (USA Central Time).

This message has been edited. Last edited by: Doug,
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Yes FORMAT FOCUS will work.

Assuming that there are no nasties that FOCUS DB's don't like.


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Thanks Waz, That's encouraging. I'll check it out in about 10-11 hours... Smiler
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Still not there yet...
1) I have a MFD (MY_MFD.mas)
2) I have my SQL passthru (code)
3) I have my report code (report)
ENGINE SQLORA SET DEFAULT_CONNECTION [conn name]
SQL SQLORA PREPARE SQLOUT FOR
select fields from table
;
END
TABLE ON TABLE HOLD AS RPT_DATA FORMAT FOCUS
USE SQLOUT AS MY_MFD
END
TABLE FILE MY_MFD
PRINT fields
END
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I think your code should be:

ENGINE SQLORA SET DEFAULT_CONNECTION [conn name]
SQL SQLORA PREPARE SQLOUT FOR
select fields from table
;
TABLE FILE SQLOUT
PRINT...
BY ...
ON TABLE HOLD AS RPT_DATA FORMAT FOCUS INDEX ...
END
TABLE FILE RPT_DATA
PRINT fields
END


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!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
You may not need the END after the ;. But, I have seen a warning without it and Report Caster kicks those jobs out having that warning.


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report 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] SQL PassThru to FORMAT FOCUS?

Copyright © 1996-2020 Information Builders