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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to remove a leading space which appears as abox in excel output ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to remove a leading space which appears as abox in excel output ?
 Login/Join
 
Gold member
posted
Hi,

I am reading a field(its length - A64) in to variable as -READ STPDATA &STP.64. But when I try to use this variable in heading I was getting trailing spaces.So I used TRUNCATE for this.Now,though I am not gettting any trailing spaces,I am getting one leading space,which appears as a box in exl output.I tried using TRIM but it did not work.Could you tell me how to remove it?

Thanks !!

This message has been edited. Last edited by: Kerry,


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


 
Posts: 68 | Location: Hyderabad | Registered: March 18, 2008Report This Post
Virtuoso
posted Hide Post
Saggy,
Can you please post a bit of your code to show what exactly it is that you're doing? That would make it a lot easier for us to try and find out what's happening.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
You can also use the LJUST function:

X1  /A10    = ' XXXX';        
X2  /A10    = LJUST(10,X1,X2);



FOCUS 7.2.0S1
Mainframe - MVS 390
Excel, Flat file

Italy
 
Posts: 25 | Registered: June 23, 2009Report This Post
Gold member
posted Hide Post
hello ac1

Thanks a lot! LJUST worked !!!


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


 
Posts: 68 | Location: Hyderabad | Registered: March 18, 2008Report 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     [SOLVED] How to remove a leading space which appears as abox in excel output ?

Copyright © 1996-2020 Information Builders