Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to include two spaces between two strings

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to include two spaces between two strings
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    Post subject:
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: 6968
Location: porcelain throne

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

learn to use code/code tags: http://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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us