IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to include two spaces between two strings


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aniceg
Warnings : 1

New User


Joined: 04 Apr 2008
Posts: 10
Location: chennai

PostPosted: Thu Oct 30, 2008 11:14 am
Reply with quote

How to include two spaces between two strings
For eg First name:Lakshmi
Last name:Priya
I want the output as Lakshmi Priya

When i use the below code i get only single space

STRING FNAME DELIMITED BY ' ' SPACES
LNAME DELIMITED BY ' '
INTO WS-OUT
Back to top
View user's profile Send private message
aniceg
Warnings : 1

New User


Joined: 04 Apr 2008
Posts: 10
Location: chennai

PostPosted: Thu Oct 30, 2008 11:16 am
Reply with quote

I want the output as Lakshmi Priya
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 30, 2008 1:07 pm
Reply with quote

learn to use code/code tags: ibmmainframes.com/faq.php?mode=bbcode

Code:

STRING FNAME
          DELIMITED BY SPACES
       '  '
          DELIMITED BY SIZE
       LNAME
          DELIMITED BY SPACES
  INTO WS-OUT
END-STRING
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
No new posts How to remove spaces in between. SYNCSORT 12
Search our Forums:

Back to Top