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 am sure this can be done but cannot find the solution. I have 2 hold files. One is a list of user_ids and one is a list of all calendar dates for specific month. I need to merge the 2 files into a single file for subsequent reporting. For example:
user_id 1234 5846 8412
Calendar days in text format 2014_10_01 2014_10_02 2014_10_03 2014_10_04 2014_10_05
Ultimately I need to concatenate the fields into the following: 2014_10_02_1234 2014_10_03_1234 2014_10_04_1234 2014_10_05_1234 2014_10_01_5846 2014_10_02_5846 2014_10_03_5846 2014_10_04_5846 2014_10_05_5846 2014_10_01_8412 2014_10_02_8412 2014_10_03_8412 2014_10_04_8412 2014_10_05_8412
Any ideas on how to do this? I tried match but that did not produce what I needed.
Thank you, Geri GellmanThis message has been edited. Last edited by: Geri,
SET HOLDLIST = PRINTONLY
DEFINE FILE CAR
BLANK/A1 = ' ';
END
TABLE FILE CAR
SUM
BLANK NOPRINT
BY BLANK
PRINT
CAR
BY BLANK
ON TABLE HOLD AS HOLD1 FORMAT FOCUS INDEX BLANK
END
JOIN BLANC WITH RELDATE IN MOVIES TO UNIQUE BLANK IN HOLD1 AS J1
DEFINE FILE MOVIES
BLANC/A1 = ' ';
END
TABLE FILE MOVIES
PRINT
CAR
RELDATE/YYMD
COMPUTE DATE_TXT/A9 = EDIT(RELDATE, '99_99_99_' );
COMPUTE NEWFIELD/A50 = DATE_TXT | CAR;
BY CAR
ON TABLE PCHOLD FORMAT AHTML
END
TABLE FILE CAR SUM BLANK NOPRINT BY BLANK PRINT CAR BY BLANK ON TABLE HOLD AS HOLD1 FORMAT FOCUS INDEX BLANK END
JOIN BLANC WITH RELDATE IN MOVIES TO UNIQUE BLANK IN HOLD1 AS J1
DEFINE FILE MOVIES BLANC/A1 = ' '; END
TABLE FILE MOVIES PRINT CAR RELDATE/YYMD COMPUTE DATE_TXT/A9 = EDIT(RELDATE, '99_99_99_' ); COMPUTE NEWFIELD/A50 = DATE_TXT | CAR; BY CAR ON TABLE PCHOLD FORMAT AHTML END
...it took me some time to find a simple solution for this.
But I think I did.
SET ASNAMES = ON
TABLE FILE CAR
BY CAR
ON TABLE HOLD AS HLD_CAR
END
TABLE FILE CAR
BY COUNTRY
ON TABLE HOLD AS HLD_COUNTRY
END
-* SQL join
SQL
SELECT
HLD_CAR.CAR, HLD_COUNTRY.COUNTRY
FROM HLD_CAR
INNER JOIN HLD_COUNTRY;
TABLE HOLD AS HLD_CARTESIAN
END
-RUN
TABLE FILE HLD_CARTESIAN
PRINT *
END
Yes, this works. You can even add join-conditions ( in sql ). Or even some other SQL stuff.
SQL
insert into HLD_CARTESIAN ( CAR , COUNTRY ) VALUES ( 'DODGE' , 'USA' );
END