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.
can we dynamically define the hold file inside a TABLE command so that when the report runs it will save each record in separate file with different user defined namesThis message has been edited. Last edited by: Kerry,
WebFocus 5.2.5 HP-UX(UNIX) EXCEL, HTML, PDF and OLAP
Is there any other solution for below situation i have a example situation like below
TABLE FILE CAR
PRINT BODYTYPE
ON TABLE HOLD AS BDY_TYPE FORMAT ALPHA
END
-RUN
TABLE FILE CAR
PRINT BODYTYPE RETAIL_COST SALES
WHERE BODYTYPE IN FILE BDY_TYPE
ON TABLE SET ONLINE-FMT PDF
END
-RUN
-EXIT
and i would like to print retail_cost and sales for each bodytype in different files, and save it to disk. I know about PAGE-BREAK, but it creates report in same file different page, but i need the report to be in different file.
WebFocus 5.2.5 HP-UX(UNIX) EXCEL, HTML, PDF and OLAP
You can use PUTDDREC - an oft overlooked function - to output records into a file from within a table request.
You MUST filedef the output files beforehand.
FILEDEF RCOST DISK OUT1.TXT
FILEDEF SALES DISK OUT2.TXT
-RUN
TABLE FILE CAR
BY BODYTYPE
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SAVE AS BDYTYPE
END
-RUN
TABLE FILE CAR
PRINT COMPUTE RCOSTA/A12 = FTOA(RETAIL_COST, '(D7)', 'A12');
COMPUTE SALESA/A12 = FTOA(SALES, '(D6)', 'A12');
COMPUTE OUT1/I11 = PUTDDREC('RCOST', 5, RCOSTA, 12, OUT1);
COMPUTE OUT2/I11 = PUTDDREC('SALES', 5, SALESA, 12, OUT2);
WHERE BODYTYPE IN FILE BDYTYPE
ON TABLE SAVE
END
-RUN
CMD TYPE OUT*.TXT
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
TABLE FILE CAR
BY COUNTRY
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SAVE AS FILELIST
END
-RUN
-SET &LOOP=&LINES;
-REPEAT ENDLOOP &LOOP TIMES
-READ FILELIST NOCLOSE &COUNTRY.A10.
FILEDEF DEST DISK &COUNTRY.EVAL.FTM
-RUN
TABLE FILE CAR
PRINT DCOST RCOST
BY COUNTRY
WHERE COUNTRY EQ '&COUNTRY'
ON TABLE SAVE AS DEST
END
-ENDLOOP
I believe there should be some way out. It's a simple requirement.
"Table file" command itself would create the report in different file and store with different name, after all the "table file" can create all report in same file with PAGE-BREAK.
I am searching hard, will keep this discussion, updated.
WebFocus 5.2.5 HP-UX(UNIX) EXCEL, HTML, PDF and OLAP
I'm a bit foggy on this but I seem to recollect using something like this in the past, with IN and the HOLD in brackets:
TABLE FILE CAR PRINT BODYTYPE ON TABLE HOLD END -RUN TABLE FILE CAR PRINT BODYTYPE RETAIL_COST SALES WHERE BODYTYPE IN (HOLD) ON TABLE SET ONLINE-FMT PDF END
BODYTYPE RETAIL_COST SALES CONVERTIBLE 8,878 0 SEDAN 13,491 12000 SEDAN 17,850 20 SEDAN 3,139 43000 COUPE 31,500 0 SEDAN 3,339 35030 SEDAN 5,970 7800 HARDTOP 5,100 0 SEDAN 5,925 4800 ROADSTER 6,820 13000 COUPE 6,820 12400 SEDAN 5,940 8950 SEDAN 6,355 8900 SEDAN 9,097 14000 SEDAN 9,495 15600 SEDAN 13,752 14000 SEDAN 14,123 18940 SEDAN 5,610 0
TABLE FILE CAR PRINT BODYTYPE ON TABLE SAVE END -RUN TABLE FILE CAR PRINT BODYTYPE RETAIL_COST SALES WHERE BODYTYPE IN (SAVE) OR IF BODYTYPE EQ (SAVE) ON TABLE SET ONLINE-FMT PDF END
WHERE BODYTYPE EQ (SAVE) will not work.
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006