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.
I'm trying using the below Focexec to Match Two files. One file contains information about patient and the other file conatins service charges that needs to be exclude. File file comes from a COBOL program. The record structure of COBOL file is:
01 OUT-FIELDS. 05 OUT-PT-NO PIC X(12) VALUE SPACES. 05 OUT-ATN-DR-NO-5 PIC 9(05) VALUE ZEROES. 05 OUT-ATN-DR-NO-1 PIC 9(01) VALUE ZERO. 05 OUT-REC-ID PIC X(01) VALUE SPACE. 05 OUT-ATN-DR-NAME PIC X(20) VALUE SPACES. 05 OUT-DTL-CHG-QTY PIC S9(04) VALUE ZEROES. 05 OUT-DTL-POST-MM PIC X(02) VALUE SPACES.
The fex is: MATCH FILE RADP0094 SUM PT_NO ATN_DR REC_ID ATN_DRNME CHG_QTY POST_DATE DTL_SVCCD DEPT_NO PROC_MM PROC_YY BY DTL_SVCCD NOPRINT BY PT_NO NOPRINT BY ATN_DR NOPRINT RUN FILE SVCTABLE SUM SVC_CODE BY SVC_CODE NOPRINT AFTER MATCH HOLD OLD-NOT-NEW END
Manish, In the MATCH command, you are using the file name as "RADP0094" and where as in the masterfiles Segment name the name is different i.e. "RAD0094" (P is missing). Could that be the problem? Can you correct this and give a try?
Version: WebFOCUS 7.6.6 O.S. WebFOCUS is mounted on Unix Output Report: HTML, Excel, CSV, PDF and TXT
According to the conversion chart that Michelle referenced, an S9(4) is a display numeric and there is a 1:1 relationship with the number displayed and the number of disk bytes used. The master format should be as follows:
In order to merge properly, you have to make the match-key fieldnames in the two legs identical.
-* changes and comments in l.c.
SUM PT_NO ... PROC_YY
BY DTL_SVCCD as svc_code
BY PT_NO NOPRINT
BY ATN_DR NOPRINT
RUN
FILE SVCTABLE
SUM SVC_CODE noprint (it will be null anyway for old-not-new)
BY SVC_CODE
AFTER MATCH HOLD OLD-NOT-NEW
END
This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
I change the declaration of CHG_QTY and execute FEX. It works in the focus. And when I used this file in other COBOL program, I got SOC7 at below step.
ADD WS-IN-DTL-CHG-QTY TO WS-OUT-DOC-YTD-PTS-CUR
I read the above file in another program where CHG-QTY is defined as: 05 WS-IN-DTL-CHG-QTY PIC S9(04).
The declaration for WS-OUT-DOC-YTD-PTS-CUR and WS-IN-DTL-CHG-QTY is: 05 WS-OUT-DOC-YTD-PTS-CUR PIC S9(05) VALUE ZERO COMP-3.