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     How to see / print Computed Values in the application logs?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to see / print Computed Values in the application logs?
 Login/Join
 
<sasmita>
posted
Hi,

This is an example where COMPUTE is used :
TABLE FILE V_ACCT_SUM
PRINT LONG_NM
TOT_SHR_Q
TOT_MONTH1_A
TOT_MONTH2_A
TOT_MONTH3_A
TOT_MONTH4_A
RPT_SUB_CATEGORY_C
COMPUTE ACCNUM/A10=FBSI_BRCH_C || '-' || FBSI_BASE_C;
WHERE ( USER_ID EQ '&UserId.UserId.');
ON TABLE HOLD AS UNION1
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN

How do i print the COMPUTE values for ACCNUM in the application logs ? e.g we use -TYPE COMMAND to print the logs. Is there any command to print the computed COMPUTE values ?
Thanks.
 
Report This Post
Guru
posted Hide Post
I think you can code.....

ON TABLE SET HOLDLIST ALL

I believe the HOLDLIST = PRINTONLY doesn't show the computed fields.
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
SET HOLDLIST = {PRINTONLY|ALL}

where:

PRINTONLY

Includes only those fields in the HOLD or PCHOLD file that are specified in the report request.


ALL

Includes all fields referenced in a request in the HOLD or PCHOLD file, including both computed fields and fields referenced in a COMPUTE command. ALL is the default value.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
SET HOLDLIST=PRINTONLY
will show ACCNUM in the HOLD file since it is not a NOPRINT field (it just won't show FBSI_BRCH_C and FBSI_BASE_C which otherwise would be there, too). But the request was for it to show up in the logs, which are created using Dialogue Manager. The only way I know of for this to occur is to -READ in the held file into Dialog Manager variables and then to -WRITE out the values again into the log. Either that or to append the hold file to the log file.
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Expert
posted Hide Post
If you were to resort to a MODIFY program then you could use TYPE ON ddname which would allow you to write out to a specific file.

I believe MAINTAIN also has this function - TYPE ON EDAPRINT.
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 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     How to see / print Computed Values in the application logs?

Copyright © 1996-2020 Information Builders