Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 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
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us