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 not sure I get what you try to achieve, but i could be using multiple BY clauses? or you can try to use the ACROSS clause which will sort of transpose your data, if you post an actual example it will be easier to help.
Here is an example that does what I think you want.
-* Write out a master to read the TST_DATA list
EX -LINES 5 EDAPUT MASTER,TST_DATA,CV,FILE
FILENAME=TST_DATA, SUFFIX=FIX,$
SEGNAME=TST_DATA, $
FIELD=ColName2 ,ALIAS= ,A3 ,A3 ,$
FIELD=ColName1 ,ALIAS= ,A50 ,A50 ,$
EX -LINES 4 EDAPUT FOCTEMP,TST_DATA,CV,FILE
123abc1, abc2, abc3, abc4
456abc1, abc2, abc3
789abc1, abc2
FILEDEF TST_DATA DISK tst_data.ftm (LRECL 80 RECFM V
-RUN
EX -LINES 7 EDAPUT MASTER,fseq,CV,FILE
FILE=FSEQ, SUFFIX=FIX
SEGNAME=SEG1
FIELD=CONTROL, BLANK , A1, A1, $
SEGNAME=SEG2, PARENT=SEG1, OCCURS=VARIABLE
FIELD=WHATEVER, , A1, A1, $
FIELD=COUNTER, ORDER, I4, I4,$
FILEDEF FSEQ DISK fseq.mas (LRECL 1000
TABLE FILE FSEQ
PRINT COUNTER
BY CONTROL
WHERE RECORDLIMIT EQ 10
ON TABLE HOLD AS FOC_FSEQ FORMAT FOCUS INDEX CONTROL
END
JOIN BLANK WITH ColName2 IN TST_DATA TO ALL CONTROL IN FOC_FSEQ
DEFINE FILE TST_DATA
BLANK/A1 WITH ColName2 = ' ' ;
END
TABLE FILE TST_DATA
PRINT ColName1
COMPUTE Item/A5 = LJUST(5,GETTOK(ColName1,50,COUNTER,',',5,'A5'),'A5') ;
BY ColName2
BY COUNTER
WHERE TOTAL Item NE ' '
END
DEFINE FILE CAR
STRING/A200='abc1, abc2, abc3, abc4, abc5';
ASTRING/A100V = STRREP(200,STRING,1,',',6,',<br>',100,ASTRING);
END
TABLE FILE CAR
PRINT
COUNTRY
STRING
ASTRING
END
Result:
Using the break HTML works... but I want to break in the second semicolon. So I want something like: ASTRING ------------- abc1, abc2, abc3, abc4, abc5
Thanks, Carlos Dias
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
DEFINE FILE CAR
STRING/A200='abc1, abc2, abc3, abc4, abc5';
END
TABLE FILE CAR
PRINT STRING
BY COUNTRY
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=STRING, WIDTH=0.80, WRAP=0.80, $
ENDSTYLE
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004