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
 

 

Concatenate two strings using String Verb

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Tue Oct 11, 2005 2:17 pm    Post subject: Concatenate two strings using String Verb
Reply with quote

Hi,

I want to concatenate the below 2 strings.


05 OUT-TEXT PIC X(550).
05 IN-TEXT.
10 IN-TEXT1 PIC X(200) VALUE
"CH3 3FG GREAT MILLS DIY SUPERSTORE,TARVINON ROAD".
10 IN-TEXT2 PIC X(350) VALUE
"SECTOR-58,UK".

Please let me know how to use Delimited By so that i get output as
"CH3 3FG GREAT MILLS DIY SUPERSTORE,TARVINON ROAD SECTOR-58,UK"

Thanks a lot!!
Richie
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Tue Oct 11, 2005 6:57 pm    Post subject: Re: String Verb
Reply with quote

Hi richie....

Try this simple STRING statement.... It should do what you are looking for.....

Code:
STRING STRING1 DELIMITED BY "  "
       " "                     
       STRING2 DELIMITED BY "  "
       INTO OUTSTR.             


It delimits input strings on two consecutive SPACES. That can be changed as per your requirement.

Regards,

Priyesh.
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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Need a help how to replace a string i... gurunath82 CLIST & REXX 12 Tue Jul 26, 2016 11:43 pm


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