View previous topic :: View next topic
|
Author |
Message |
Jerin Joseph
New User
Joined: 03 Aug 2009 Posts: 6 Location: bangalore
|
|
|
|
I have one filed with max of 28 character length(Alphanumeric filed).In this at any place there may be one HYPHEN or SPACE will be present I need to remove this hyphen and space and to combine the data.How this cab be done..??
For Example: 123456-8910 like this i need to change this to 1234568910
123456<> 8910 like this need to chnage to 1234568910
<> indicating a presence of space. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
You could tell us which language you need to implement this in -- since the choice of language influences the method used. |
|
Back to top |
|
|
Jerin Joseph
New User
Joined: 03 Aug 2009 Posts: 6 Location: bangalore
|
|
|
|
The language is COBOL |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Use Reference Modification. If you don't know about it, use the manuals link at the top of the page to get to the COBOL Language Reference manual and read up on it. If you have specific questions about using it, please post again. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
To add to Robert's suggestion, using reference modification, define an output field and move the input field characters, skipping over the hyphens and spaces, one at a time to the output field. |
|
Back to top |
|
|
|