Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     printing two columns in a single column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
printing two columns in a single column
 Login/Join
 
Silver Member
posted
suppose iam getting three fields from stored procedure 'fld1', 'fld2' and 'fld3'. i want to print all these three under the same column 'Description'. right now iam writing the following code:

COMPUTE COM_FLD/A255 = FLD1 || (' ' | FLD2) || (' ' | FLD3); AS 'Description'

but actually i want to display FLD2 and FLD3 in next line in the same row. i want something like this:

Description
-----------

FLD1
FLD2 FLD3 (first row)

FLD11
FLD22 FLD33 (second row)

any idea how to do this?
 
Posts: 41 | Location: Boston | Registered: August 17, 2005Report This Post
<Steve Cowell>
posted
Dharma
You can use OVER to accomplish this. DEFINE a field concatenating fields two and three as 'D_CONCAT_FIELD' then in your TABLE.

PRINT FIELD_ONE AS '' OVER D_CONCAT_FIELD AS ''

Hope this helps

Steve C
 
Report This Post
Gold member
posted Hide Post
Another way to do this, is to make the second line be a SUBFOOT. First, if you don't have a normal BY field, make one up:
DEFINE FILE fn
CTR/I9 WITH FIELD_ONE = CTR + 1;
END
TABLE FILE fn
PRINT FIELD_ONE AS 'Description'
BY CTR NOPRINT
ON CTR SUBFOOT
"<FIELD_TWO <FIELD_THREE "
END

You can do this all through the GUI, and if you have other verb objects for the first line, just put them in before the CTR, and if you have another BY field, most likely you won't have to do the DEFINE CTR at all.
 
Posts: 60 | Location: 2 penn | Registered: May 22, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     printing two columns in a single column

Copyright © 1996-2020 Information Builders