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     Retaining Trailing Space between two columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Retaining Trailing Space between two columns
 Login/Join
 
Gold member
posted
My Report o/p format is PDF.

The sample code is as follows
DEFINE FILE TEST
V_FNAME/A10=' ';
V_LNAME=/A20=V_FNAME|' TEST';
END

TABLE FILE TEST
PRINT
V_LNAME
V_DATE
ON TABLE SET ONLINE-FMT PDF
END

When I concatenate (weak concatenation used) two fixed length variables, if one variable is stored with space, space is not getting displayed in the report report.

The name o/p should be " Test"

But I am getting "Test"

How can I retain this space?

Please guide me.
 
Posts: 77 | Registered: December 22, 2004Report This Post
Virtuoso
posted Hide Post
The following code seems to work but gives 10 spaces before the ' TEST'. I added two more fields to demonstrate how each works.

DEFINE FILE CAR
M_FNAME/A10 WITH COUNTRY='----------';
M_LNAME/A20 WITH COUNTRY=M_FNAME|' TEST';
V_FNAME/A10 WITH COUNTRY='-';
V_LNAME/A20 WITH COUNTRY=V_FNAME|' TEST';
X_FNAME/A10 WITH COUNTRY=' ';
X_LNAME/A20 WITH COUNTRY=X_FNAME||' TEST';
END

TABLE FILE CAR
PRINT M_LNAME OVER V_LNAME OVER X_LNAME
ON TABLE SET ONLINE-FMT PDF
END

I hope this helps.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Removing the typos to give -
DEFINE FILE TEST
V_FNAME/A10=' ';
V_LNAME/A20=V_FNAME|' TEST';
END

TABLE FILE TEST
PRINT
V_LNAME
-*V_DATE
ON TABLE SET ONLINE-FMT PDF
END
I get TEST preceded by 11 spaces.

T

p.s. are you using proportional fonts?



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, 2004Report This Post
Expert
posted Hide Post
and the ever-popular
V_LNAME/A20=V_FNAME|'&|nbsp;TEST';




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 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     Retaining Trailing Space between two columns

Copyright © 1996-2020 Information Builders