How to concatenate two strings with 5 spaces in front



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

How to concatenate two strings with 5 spaces in front

Postby Nazma » Tue Jul 07, 2009 5:26 pm

Hii,

Can anyone suggest me how to concatenate two strings with 5 spaces in front.

The output should be first five characters spaces and the sting
Nazma
 
Posts: 7
Joined: Fri Jun 13, 2008 4:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Concatenation

Postby MrSpock » Tue Jul 07, 2009 5:32 pm

I'm not a COBOL guy, but isn't there a STRING instruction for what you want?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Concatenation

Postby dick scherrer » Wed Jul 08, 2009 12:17 am

Hello,

Yes, STRING should to what you want to do.

This is the Table of Contents for the COBOL Language Reference.
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS?

The flashlight/tubelight near the top left of the page is the Search function.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post