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     [SOLVED] Footing Missing When Saving to Alpha Format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Footing Missing When Saving to Alpha Format
 Login/Join
 
Gold member
posted
I'm trying to dynamically generate a SQL WHERE statement using WebFOCUS and saving it to a file using ON TABLE HOLD FORMAT ALPHA. I'm using a FOOTING to generate a closing parenthesis because I only need one at the end of the statement, but WebFOCUS is not saving it to my output file. Is it normal that footings are not saved when using the ALPHA format?

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


WF 8.1.05, Windows Server 2012 R2
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
Headings, footings, subtotals do not get saved in an ALPHA format.

I would add the closing parenthesis in the code where you use the ALPHA file. Let us know how the file is used - maybe we can help.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks Francis, I just did something like the following...
DEFINE
FILE MTCHFILE
COUNTER/P18=COUNTER + 1;
COMMA/A1=IF COUNTER NE &RECORDS.EVAL THEN ',' ELSE '';
MYLINE/A30=IF COUNTER EQ 1 THEN 'WHERE t.field1 IN ('
ELSE IF COUNTER EQ &RECORDS.EVAL THEN EDIT(focfield1) || ')'
ELSE EDIT(focfield1) || COMMA;
MYLINE=TRIM('L', MYLINE, 30, '0', 1, 'A30');
END


WF 8.1.05, Windows Server 2012 R2
 
Posts: 50 | Registered: March 26, 2004Report This Post
Expert
posted Hide Post
Yup, that's one way. Glad you found it.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
That would assume that you previously have populated the value of &RECORDS (using a HOLD file) as the value of that parameter is not available until AFTER a particular procedure has completed.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Gold member
posted Hide Post
Yes, that is what I did Darin...seemed extraneous, but the queries run quickly.


WF 8.1.05, Windows Server 2012 R2
 
Posts: 50 | Registered: March 26, 2004Report 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     [SOLVED] Footing Missing When Saving to Alpha Format

Copyright © 1996-2020 Information Builders