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.
Hi All, Gud Moring i have a following code which works fine as i have coded. thing i am Struggling here is in the footing section i need to print all the content of the "MODEL" of data type A50 as a list(one after the other). is this possible???
TABLE FILE CAR
PRINT
CAR
BODYTYPE
BY COUNTRY
ON COUNTRY PAGE-BREAK
HEADING
"My Reports "
FOOTING
" <MODEL "
Thanks krish
Prod: WebFOCUS 7.6.5 Excel;HTML;PDF SelfservThis message has been edited. Last edited by: Kerry,
7.1.1 Windows XP HTML
Posts: 64 | Location: North Carolina | Registered: December 04, 2007
This is probable not exactly what you want, but it may be a first step towards the ultimate solution for you:
TABLE FILE CAR
BY COUNTRY
ON TABLE HOLD
END
-RUN
-REPEAT :LOOP &LINES TIMES;
-READ HOLD NOCLOSE &COU.10.
DEFINE FILE CAR
FOOT_MOD/A26 = '"' | MODEL | '"';
END
TABLE FILE CAR
PRINT FOOT_MOD
IF COUNTRY EQ '&COU'
ON TABLE HOLD AS INC_MOD FORMAT ALPHA
END
-RUN
TABLE FILE CAR
PRINT
CAR
BODYTYPE
BY COUNTRY
WHERE COUNTRY EQ '&COU'
ON COUNTRY PAGE-BREAK
HEADING
"My Reports "
FOOTING
-INCLUDE inc_mod.ftm
END
-:LOOP
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
TABLE FILE CAR
PRINT
CAR
BODYTYPE
COMPUTE DISP_MOD/A150 = IF COUNTRY NE LAST COUNTRY
THEN MODEL
ELSE SUBSTR(150,(LAST DISP_MOD || (', '|MODEL)),1,150,DISP_MOD;
NOPRINT
BY COUNTRY
ON COUNTRY PAGE-BREAK
HEADING
"My Reports "
FOOTING
" <DISP_MOD "
END
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
You said you also needed this for excel. Well, since the idea I gave involves multiple table requests, that's not going to be so very easy. But, if you look at the proces from another angle, it suddenly becomes possible to do this in ultimtelt one request, as per the following example on the car database:
TABLE FILE CAR
BY COUNTRY
ON TABLE HOLD
END
-RUN
-SET &X = &LINES;
-SET &C = 1;
-REPEAT :LOOP_1 &X TIMES;
-READ HOLD NOCLOSE &COU.&C.10.
DEFINE FILE CAR
FOOT_MOD/A26 = '"' | MODEL | '"';
END
TABLE FILE CAR
PRINT FOOT_MOD
IF COUNTRY EQ '&COU.&C'
ON TABLE HOLD AS INC_MOD&C FORMAT ALPHA
END
-RUN
-SET &C=&C+1;
-:LOOP_1
-SET &ECHO='ALL';
TABLE FILE CAR
PRINT
CAR
BODYTYPE
BY COUNTRY
ON COUNTRY PAGE-BREAK
HEADING
"My Reports "
-SET &C = 1;
-REPEAT :LOOP_2 &X TIMES;
ON COUNTRY SUBFOOT
-INCLUDE inc_mod&C...ftm
WHEN COUNTRY EQ '&COU.&C'
-SET &C=&C+1;
-:LOOP_2
END
-RUN
This examples uses the ON .. SUBFOOT WHEN ... which allows it to be one request.
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007