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.
TABLE FILE LIST_TABLE
PRINT
COMPUTE COUNT2/I6=COUNT1;
COMPUTE BEGIN2/I9=BEGIN1;
COMPUTE END2/I9=END1;
COMPUTE CNTR/I5=LAST CNTR+1 ;
ON TABLE HOLD AS RECCNT
END
-SET &REC_CNT =&LINES;
-SET &V1=0;
-REPEAT LOOP &REC_CNT TIMES
-SET &V1=&V1+1;
TABLE FILE RECCNT
PRINT
COUNT2
WHERE CNTR EQ '&V1';
ON TABLE SAVE AS HLDFNL
END
-RUN
-READ HLDFNL &CNT.I6
-TYPE &CNT
TABLE FILE RECCNT
PRINT
COUNT2
BEGIN2
END2
WHERE CNTR EQ '&V1';
ON TABLE HOLD AS LISTREC
END
-SET &CNT=IF &V1 EQ 1 THEN &CNT-1 ELSE &CNT;
-SET &V2=&V1-1;
-IF &V1 GT 1 THEN GOTO TAG1 ELSE GOTO TAG2;
-TAG2
TABLE FILE LISTREC
-GOTO CNTN;
-TAG1
TABLE FILE LISTREC&V2
-CNTN
PRINT
*
ON TABLE HOLD AS LISTREC&V1
-REPEAT LOOP1 &CNT TIMES
MORE
FILE LISTREC
-LOOP1
END
-RUN
-IF &V1 EQ &REC_CNT THEN GOTO BREAK;
-LOOP
-BREAK
TABLE FILE LISTREC&V1
PRINT *
COMPUTE TSTCNT/I5 = IF TSTCNT LT COUNT2 AND BEGIN2 EQ LAST BEGIN2 AND END2 EQ LAST END2 THEN LAST TSTCNT+1 ELSE 1;
COMPUTE FINALLST/I9= IF TSTCNT EQ 1 AND TSTCNT LE COUNT2 THEN BEGIN2 ELSE IF TSTCNT NE 1 AND TSTCNT LE COUNT2 THEN LAST FINALLST+1 ELSE BEGIN2;
ON TABLE HOLD AS FNLTABLE
END
TABLE FILE FNLTABLE
PRINT
FINALLST
END
The field FINALLST will give the required list.
WebFOCUS 8.1.05 Windows Excel, PDF, HTML
Posts: 72 | Location: Flowood , MS | Registered: May 11, 2011
thanks for all the input...this is an invoice number list used to generate additional detail for a client. I'll let you know how it all works out. thanks again for the input