MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Removing Trailing spaces

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Declan
Beginner


Joined: 04 May 2005
Posts: 15
Topics: 8

PostPosted: Fri Oct 21, 2005 8:34 am    Post subject: Removing Trailing spaces Reply with quote

HI,

I have the following piece of text in a PIC X(80) field:

'DECLAN LIVES IN IRELAND '.

I want to move this piece of text to a variable length field and remove the trailing spaces.
I have used the INSPECT REVERSE FUNCTION command but it removes ALL spaces and I get the following:
'DECLANLIVESINIRELAND'

What I want is a field with
'DECLAN LIVES IN IRELAND'.

Can anyone help me on this? I have unsuccessfully searched other posts for an answer.

Thanks!
Back to top
View user's profile Send private message
Declan
Beginner


Joined: 04 May 2005
Posts: 15
Topics: 8

PostPosted: Fri Oct 21, 2005 8:57 am    Post subject: Reply with quote

Please note there are trailing spaces on the text that I didn't show on my first message:

Code:
'DECLAN LIVES IN IRELAND                              '
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Fri Oct 21, 2005 9:03 am    Post subject: Reply with quote

Declan,

Please search before posting.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1282&highlight=length

http://www.mvsforums.com/helpboards/viewtopic.php?t=525&highlight=length

http://mvsforums.com/helpboards/viewtopic.php?t=3185&highlight=length

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group