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.
Well the first thing you have to do is look at the masters of the files you are MATCHing.
Then check out the language manual and look up MATCH. It specifically states: "At least one pair of sort fields is required; field formats must be the same."
You can use a DEFINE to adjust the formats so that they are the same.
Thanks for your quick response. I'm new to webfocus coding,so i'm not doing any master files,we are doing all the codiing through sql.This following is the code which is throwing error,please help me out
-* File db10192.fex -* File quartile.fex SET NODATA = '' -INCLUDE COMMON/COMMON -*SET BASEURL = &&BURL; -INCLUDE COMMON/CONNECTION -INCLUDE db10190.fex TABLE FILE SQLOUT PRINT * ON TABLE HOLD AS A1 END -INCLUDE common/norecords1 -IF &&GOTOEND EQ 'TRUE' THEN GOTO EXT ELSE GOTO CONT; -CONT
TABLE FILE A2 PRINT QYR QUARTILERANK AS 'QR QTR BY HIGHEST ROWNUM NOPRINT WHERE QYR NE '' ; ON TABLE SAVE AS QYRN FORMAT ALPHA END -RUN
SET ASNAMES = FOCUS SET HOLDLIST =PRINTONLY
TABLE FILE HOLD SUM COMPUTE DUMMY/I1= ; AS '' BY QTR AS 'QR' ACROSS QYR AS '' WHERE QTR NE '' ; ON TABLE HOLD AS DUMMYTAB FORMAT FOCUS END
TABLE FILE HOLD SUM QUARTILENO AS '' BY QUARTILERANK AS 'QR' -*ACROSS ROWNUM NOPRINT AS '' ACROSS QYR AS '' -*ON TABLE SUBHEAD -*"Quartile Rank Changes" ON TABLE SET PAGE-NUM OFF ON TABLE SET PAGE NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE HOLD AS TEST FORMAT FOCUS ON TABLE SET HTMLCSS ON ON TABLE SET CSSURL './css/mystyle.css' ON TABLE SET STYLE * UNITS=IN, PAGESIZE='A4', SQUEEZE=ON, ORIENTATION=PORTRAIT,
$ ENDSTYLE END MATCH FILE DUMMYTAB BY QR RUN FILE TEST PRINT * BY QR AFTER MATCH HOLD AS TEST OLD-OR-NEW END
You are using master files in your MATCH statement, DUMMYTAB and TEST.
After the TABLE statements where you create each one, put a ? HOLD holdname and check out the format for the QR field. e.g.
TABLE FILE HOLD
SUM COMPUTE DUMMY/I1= ; AS ''
BY QTR AS 'QR'
ACROSS QYR AS ''
WHERE QTR NE '' ;
ON TABLE HOLD AS DUMMYTAB FORMAT ALPHA
END
-RUN
? HOLD DUMMYTAB
TABLE FILE HOLD
SUM
QUARTILENO AS ''
BY QUARTILERANK AS 'QR'
ACROSS QYR AS ''
ON TABLE HOLD AS TEST FORMAT ALPHA
END
-RUN
? HOLD TEST
-EXIT
BTW, you don't need to make these FOCUS files; a flat hold file will do. Also, you don't need to post then entire stylesheet if we aren't diagnosing styling. It just makes the post longer.