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.
Can anyboby tell me how to join two hold files. As i am getting parsing error if i use "JOIN". i want to display as the format mentioned below.
Accurate WTD MTD Agree 35% 56% Disagree 65% 44%
But i am getting in this format
Accurate WTD Agree 35% Disagree 65% Accurate MTD Agree 56% Disagree 44%
Please find the code below.
SET ASNAMES=ON -SET &ECHO=ALL SET LINES = 9999 -*SET HOLDLIST = PRINTONLY -****************************************************************************************** -DEFAULT &WK = 5 -DEFAULT &M = 8 -DEFAULT &Y = 2005 TABLE FILE T_ACC_QUALITY SUM CNT.ACCURATE CNT.FAST CNT.FRIENDLY WHERE MO_WK_I EQ &WK ON TABLE HOLD AS HOLD1 END -RUN TABLE FILE HOLD1 PRINT * ON TABLE SAVE AS SAVE1 END -RUN -READ SAVE1 &ACC.I5. &FAST.I5. &FRIEND.I5. TABLE FILE T_ACC_QUALITY SUM CNT.ACCURATE CNT.FAST CNT.FRIENDLY WHERE MO_I EQ &M ON TABLE HOLD AS HOLD2 END -RUN TABLE FILE HOLD2 PRINT * ON TABLE SAVE AS SAVE2 END -RUN -READ SAVE2 &ACCM.I5. &FASTM.I5. &FRIENDM.I5. -* *****************************************************FOR ACCURATE CATEGORY START TABLE FILE T_ACC_QUALITY SUM COMPUTE WTD/D4% = IF (ACCURATE IN ('Agree' , 'StronglyAgree')) THEN ((CNT.ACCURATE/&ACC) * 100) ELSE IF (ACCURATE EQ 'Disagree') THEN ((CNT.ACCURATE/&ACC)*100) ELSE 0 ; BY ACCURATE WHERE MO_WK_I EQ &WK END -RUN
TABLE FILE T_ACC_QUALITY SUM COMPUTE MTD/D4% = IF ACCURATE IN ('Agree' , 'StronglyAgree') THEN ((CNT.ACCURATE/&ACCM) * 100) ELSE IF ACCURATE EQ 'Disagree' THEN ((CNT.ACCURATE/&ACCM)*100) ELSE 0 ; BY ACCURATE WHERE MO_I EQ &M END -RUN -********************************************************FOR ACCURATE CATEGORY END
-EXITThis message has been edited. Last edited by: basava,
I repeat the question Danny:What do you want to join. Generally, if you want to join 2 hold files you have to hold each of them with an index. Then you will used these 2 indexes in your join.
Majid.
WebFocus 7.6.5 AND WebLogic server as web server sql2005 as database server
Posts: 273 | Location: Europe | Registered: May 31, 2007
HI, Sorry i have hove not inculed the command in the code for creating index, because i was getting the parsing error. please check the main code below.
TABLE FILE T_ACC_QUALITY SUM COMPUTE WTD/D4% = IF (ACCURATE IN ('Agree' , 'StronglyAgree')) THEN ((CNT.ACCURATE/&ACC) * 100) ELSE IF (ACCURATE EQ 'Disagree') THEN ((CNT.ACCURATE/&ACC)*100) ELSE 0 ; BY ACCURATE WHERE MO_WK_I EQ &WK ON TABLE HOLD AS HWA1 FORMAT FOCUS INDEX ACCURATE END -RUN
TABLE FILE T_ACC_QUALITY SUM COMPUTE MTD/D4% = IF ACCURATE IN ('Agree' , 'StronglyAgree') THEN ((CNT.ACCURATE/&ACCM) * 100) ELSE IF ACCURATE EQ 'Disagree' THEN ((CNT.ACCURATE/&ACCM)*100) ELSE 0 ; BY ACCURATE WHERE MO_I EQ &M ON TABLE HOLD AS HMA1 FORMAT FOCUS INDEX ACCURATE END -RUN