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.
Here you will find my solution using CTRAN and GETTOK:
-SET &ECHO=ALL; -RUN
-* create a file with your test conditions: Ampersand as a delimiter DEFINE FILE CAR INFIELD/A80 WITH COUNTRY= 'CC: 567,Z. Zidane,5000,00&|CC: 39,DAVID BECKHAM,100,00&|EC:4545,FIGO&|'; END TABLE FILE CAR PRINT COUNTRY INFIELD IF RECORDLIMIT IS 1 ON TABLE HOLD AS HOLDCAR END
-* Solution with CTRAN and GETTOK SET STYLEMODE = FIXED SET PANEL = 145 DEFINE FILE HOLDCAR -* Ampersand is a reserved sign for Focus Dialog Manager variables. -* Therefore change Ampersand & to # with the CTRAN function CHGFIELD/A80 = CTRAN (80,INFIELD,38,35,'A80'); -* pick up the string up to the next # as a new field. FLD1/A80 = GETTOK(CHGFIELD,80,1,'#',80,'A80'); FLD2/A80 = GETTOK(CHGFIELD,80,2,'#',80,'A80'); FLD3/A80 = GETTOK(CHGFIELD,80,3,'#',80,'A80'); END TABLE FILE HOLDCAR "view from HOLDCAR" PRINT INFIELD OVER CHGFIELD OVER FLD1 OVER FLD2 OVER FLD3 BY COUNTRY NOPRINT END -EXIT