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     Example from the documentation

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Example from the documentation
 Login/Join
 
Guru
posted
Hi

I am reading the documentation and trying to use one listed example in order to understand MATCH AND MORE. Unfortunatelly i am getting an error saying no description found for HOLD.
Can you please help me.
Regards:

DEFINE FILE EMPDATA
CURR_SAL/D12.2M = CSAL;
FIRST_NAME/A10 = FN;
EID/A9 = PIN;
END
-*Start MATCH. 2.
MATCH FILE EMPLOYEE
SUM CURR_SAL AS 'CURRENT'
FIRST_NAME AS 'FIRST'
BY EID AS 'SSN'
-*Concatenate file EMPDATA to EMPLOYEE to form first MATCH answer set.3.
MORE FILE EMPDATA
RUN
-*Second MATCH answer set:
FILE TRAINING
PRINT EXPENSES
BY PIN AS 'SSN'
AFTER MATCH HOLD OLD-OR-NEW
END
-*Print merged file: 7.
TABLE FILE HOLD
PRINT *
END


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report This Post
Member
posted Hide Post
Instead of:
AFTER MATCH HOLD OLD-OR-NEW

Try:
AFTER MATCH HOLD AS HOLD OLD-OR-NEW


Mike Honeycutt


WebFocus 7.6.6, Windows
 
Posts: 17 | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
MORE is on a line by itself, outside of that, GOOD JOB...

DEFINE FILE EMPDATA
CURR_SAL/D12.2M = CSAL;
FIRST_NAME/A10 = FN;
EID/A9 = PIN;
END
-*Start MATCH. 2.
MATCH FILE EMPLOYEE
SUM CURR_SAL AS 'CURRENT'
FIRST_NAME AS 'FIRST'
BY EID AS 'SSN'
-*Concatenate file EMPDATA to EMPLOYEE to form first MATCH answer set.3.
MORE
FILE EMPDATA

RUN
-*Second MATCH answer set:
FILE TRAINING
PRINT EXPENSES
BY PIN AS 'SSN'
AFTER MATCH HOLD OLD-OR-NEW
END
-*Print merged file: 7.
TABLE FILE HOLD
PRINT *
END

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
quote:
MORE FILE EMPDATA


You get an error on this line which is why the HOLD file isn't created and why you get the error. When I run the code you posted, I get two errors.

Check the doc again. I probably wouldn't do it this way. I'd do the concat first then the match.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Guru
posted Hide Post
Hi Tom,

Thanks it works.
Thanks also to Ginny.

Regards


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report 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     Example from the documentation

Copyright © 1996-2020 Information Builders