Focal Point
[SOLVED] How to remove a leading space which appears as abox in excel output ?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/383105671

July 10, 2009, 02:09 AM
saggy
[SOLVED] How to remove a leading space which appears as abox in excel output ?
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


July 10, 2009, 02:56 AM
GamP
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
July 10, 2009, 03:14 AM
ac1
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
July 10, 2009, 04:44 AM
saggy
hello ac1

Thanks a lot! LJUST worked !!!


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