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.
What is the least labor intensive way to break a 30-column line in three 10-column lines?
FYI, the pass-thru SQL returns 30 columns per row.
I have heard about sub-foot, but I don't quite understand how it works. The 30 columns are currently listed under one PRINT statement. Ideally, if I could introduce (a forced) line-feed/ new-line character between the 10th and 11th columns, and another between the 20th and 21st columns would be best...
Any insights would be much appreciated.
-SimonThis message has been edited. Last edited by: FP Mod Chuck,
Your suggestion helps. That's a really quick and useful trick by just placing the OVER command between the 10th and the 11th column, and again between the 20th and the 21st one.
Thank you very much for that!
I do now get three 10-column lines per returned data row, with the columns nicely lined up. FYI, each of the 3 stacked columns has the same datatype and length.
However, the column headers are now no longer printed one time per page, at the top of the columns, but rather to the left of each printed column data.
When I tried to remove the column headers from the 11th thru the 30th columns (by removing the "AS 'headername'" clauses), the data column names in upper case were printed, instead.
Is there another quick fix to print the header the way I want it as shown in the example below? Bonus Emp ID Emp Name Year Quarter Q. Wage Amount
1 Dee Sho 2017 x 1,234.56 345.67 2017 y 1,256.78 350.12 2017 z 1,300.00 375.67
2 Jay Kid 2017 x 456.78 10.50 2017 y 456.78 10.50 2017 z 475.00 12.00
Turn off all the column heading and put your column headings in a Page Heading.
I would also suggest that you read the manual. There are always a number of ways to achieve what you want. You might learn some other useful commands while you are at it.
This is very basic WebFOCUS coding.
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006
If you want to suppress the column names you use AS '' otherwise leaving out the AS clause causes WebFOCUS to use the default column header which is the fieldname from the MAS file.
You really need to read the manual. As I said this is very basic WebFOCUS report writing.
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006
This is just to report that the issues I had with the jumbled up column headers and the free-floating (non-tabular) data columns have now been resolved.
Changes that fixed the issues with the PDF output: the (1) use of option SQUEEZE=OFF, GRID=ON; (2) one of the stacked columns was a blank specified w/ A5 (while the other ones were I5) changed to a zero w/ I5S; (3) creating a separate section to format the column headers.
Thanks again to Martin & OPALTOSH for the pointers. This post can be marked as solved now.