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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Rewind Hold File ?
 Login/Join
 
Gold member
posted
I have a costly SQL query that I run and Hold. Then I run 'TABLE FILE SQLOUT'.
Is there a way to rewind the Hold file and reuse it with another 'TABLE FILE' ?
It says that the Hold file does not exist anymore.


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Gold member
posted Hide Post
Could you supply a code snippet please of the SQL with the hold file code? Thanks.


Using: WF 7.1.5, XP Pro, Tomcat, Self Serve
 
Posts: 81 | Location: Calgary, Alberta | Registered: August 07, 2003Report This Post
Platinum Member
posted Hide Post
Storing first in your own hold file...

SQL DB2
  SELECT * FROM tablename ;
TABLE FILE SQLOUT
  PRINT *
  ON TABLE HOLD AS MYHOLD
END
-RUN

TABLE FILE MYHOLD
  PRINT *
END

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Guru
posted Hide Post
Are these other table files in the same fex file? If they are in the same file then yes.
SQL SQLORA
SELECT
...
;
TABLE
ON TABLE HOLD AS H0 FORMAT ALPHA
END
-RUN

TABLE FILE H0
HEADING
"REPORT 1"
PRINT *
ON TABLE PCHOLD FORMAT HTML
END
-RUN

TABLE FILE H0
"REPORT 2"
PRINT *
ON TABLE PCHOLD FORMAT HTML
END


If they are not in the same file, well I guess you can. You can tell WebFOCUS to create a flat file on edapath and then you can call that file in the other fex files. This is really not a good idea you should get a view created from your sql.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
I don't use the SQLOUT method.
After the ; in the SQL statement, I do the following:
TABLE
ON TABLE HOLD AS MYFILE
END

Then you can do whatever you like with it. I wonder if that will help you?


Using: WF 7.1.5, XP Pro, Tomcat, Self Serve
 
Posts: 81 | Location: Calgary, Alberta | Registered: August 07, 2003Report This Post
Platinum Member
posted Hide Post
Nightowl:

Using only TABLE without FILE SQLOUT don't works everywhere (I have tried now WF7 with SQLMAC and i get a error message).

And attending doc. (for example Issuing Commands and Requests in DB2) we must use TABLE FILE SQLOUT.

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Gold member
posted Hide Post
Thx for replies. SQLOUT didn't work. 'TABLE HOLD' worked. That
satisfied my need for rewinding the HOLD file.

SQL DB2
SELECT DISTINCT COL1
FROM TAB1;

TABLE ON TABLE HOLD AS H1
END

-* going
TABLE FILE H1
PRINT COL1
END

-* and going
TABLE FILE H1
PRINT COL1
END

-* and still going
TABLE FILE H1
PRINT COL1
END


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Platinum Member
posted Hide Post
This example also works:

SQL DB2 
SELECT DISTINCT COL1 FROM TAB ;
TABLE FILE SQLOUT 
PRINT * 
ON TABLE HOLD AS H1
END

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders