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] Compare the record counts of two hold files within a focexec

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Compare the record counts of two hold files within a focexec
 Login/Join
 
Member
posted
I am using WF Dev studio 7.6.11. I'll have 7.6.04 by the end of this month.
I have program that I am trying to make smarter. In the first hold file and am holding data that meets a certain date criteria as well as a special status code and the result is just a record count. In the second hold file I am holding all data that meets the same date criteria above but not status and it returns a record count as well. I would like to know how I can write the WF code to compare the two hold files record count. If they match then create a report, if not I want to invoke the &&KILL_RPC. I appreciate any help or advice on this one.

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


7.7.03

OS/Oracle

Windows
Output:All
 
Posts: 20 | Registered: January 22, 2010Report This Post
Virtuoso
posted Hide Post
If the HOLD files contain just record counts, use SAVE instead of HOLD. Then:

TABLE FILE xxx
.
.
ON TABLE SAVE AS SAVE1
END

TABLE FILE yyy
.
.
ON TABLE SAVE AS SAVE2
END
-*
-RUN
-READ SAVE1, &REC_COUNT1
-READ SAVE2, &REC_COUNT2
-*
-IF (&REC_COUNT1 EQ &REC_COUNT2) GOTO :REPORT ;
-SET &&KILL_RPC = 'Y';
-EXIT
-*
-:REPORT
<report logic or -INCLUDE report logic>

If the HOLD files contain data records, then:

TABLE FILE xxx
.
.
ON TABLE HOLD AS HOLD1
END
-RUN
-SET &REC_COUNT1 = &LINES ;

TABLE FILE yyy
.
.
ON TABLE HOLD AS HOLD2
END
-RUN
-SET &REC_COUNT2 = &LINES ;
-*
-IF (&REC_COUNT1 EQ &REC_COUNT2) GOTO :REPORT ;
-SET &&KILL_RPC = 'Y';
-EXIT
-*
-:REPORT
<report logic or -INCLUDE report logic>


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Master
posted Hide Post
Or...

TABLE FILE ...
END

-RUN
-SET &FILE1_LINES = &LINES;

TABLE FILE ...
END

-RUN
-SET &FILE2_LINES = &LINES;

-IF &FILE1_LINES EQ &FILE2_LINES THEN GOTO L_REPORT ELSE GOTO L_QUIT;


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report 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] Compare the record counts of two hold files within a focexec

Copyright © 1996-2020 Information Builders