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] Calculation fields in Batch Focus output file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Calculation fields in Batch Focus output file
 Login/Join
 
Member
posted
In BATCH Focus, I am outputting a file through the ON TABLE SAVE AS process, and happen to be using a COMPUTE statement to calculate percentages at total time. My output is a summarized file, however, the output file now also contains the fields used to calculate the percentages, when what I want is only the new calculated field. Is there a way to keep these field from being in the output file?

Focus:
SUM ARS_AIN
M_NAME M_FNM ARS_SELL_STR
ARS_HOME_STR
WKC_SRT COMPUTE PEN/P7.2 = ARS_DDS_SLS_AMT * 100 / ARS_SLS_AMT;
ARS_APPS_PROCESSED COMPUTE HRS_APP/P5 = ARS_SELLING_HRS / ARS_APPS_PROCESSED;
ARS_DDS_SLS_UNIT
ARS_SLS_UNIT
BY ARS_SELL_STR NOPRINT
BY WKC_SRT NOPRINT NOPRINT
BY ARS_AIN NOPRINT NOPRINT
ON TABLE SAVE AS IPSRECAP

Output file:
ARS_AIN ARS_AIN A9 9
M_NAME M_NAME A20 20
M_FNM M_FNM A12 12
ARS_SELL_STR ARS_SELL_STR A4 4
ARS_HOME_STR ARS_HOME_STR A4 4
WKC_SRT A4 4
ARS_DDS_SLS_AMT ARS_DDS_SLS_> P13.2 13
ARS_SLS_AMT ARS_SLS_AMT P13.2 13
PEN P7.2 7
ARS_APPS_PROCESSED ARS_APPS_PRO> P8 8
ARS_SELLING_HRS ARS_SELLING_> P9.2 9
HRS_APP > P5 5
ARS_DDS_SLS_UNIT ARS_DDS_SLS_> P8 8
ARS_SLS_UNIT ARS_SLS_UNIT P8 8

Thanks,
Jackie

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


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report This Post
Expert
posted Hide Post
This is a very basic question, add the following to your code:

SET HOLDLIST=PRINTONLY

or
ON TABLE SET HOLDLIST PRINTONLY


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
Member
posted Hide Post
Thank you! I try to look in the 'Creating Reports' manual before posting a question, but wasn't sure where to look.

I appreciate your assistance.

Jackie


WebFocus 7.1.4, ZOS / USS, Output formats: HTML, Excel, PDF..... Mainframe Focus 7.3.3
 
Posts: 19 | Location: Little Rock, AR | Registered: July 21, 2003Report 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] Calculation fields in Batch Focus output file

Copyright © 1996-2020 Information Builders