Delimited by sapce



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

Delimited by sapce

Postby ram23bal » Wed Oct 01, 2008 11:10 am

Hi all,

I have to remove the Spaces in the middle name. for that i am using Delimited by space for middle name.

For Eg ,
IF my name is AMS ALEXANDAR GENE

As per my program logic, it will consider

First Middle Last
AMS ALEXANDAR GENE

but if my name is AMS ALEXANDAR JESUS GENE
i am expecting the out put as

First Middle Last
AMS ALEXANDAR JESUS GENE


but it is displaying only
First Middle Last
AMS ALEXANDAR GENE it is skipping the last names in middle name( skipping JESUS)

Please help mr resolve this issue.

thanks in advance.
Rambalaji.
ram23bal
 
Posts: 33
Joined: Sat May 24, 2008 3:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Delimited by sapce

 

Re: Delimited by sapce

Postby dick scherrer » Wed Oct 01, 2008 11:55 pm

Hello,

I have to remove the Spaces in the middle name.
This needs clarification. I believe that what you posted and what you want are going to be misunderstood when people read this.

It will help if you post the data definitions of the "sending" and "receiving" fields as well as the code you have that is building the "receiving" data.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post