View previous topic :: View next topic
|
Author |
Message |
Aniyaa
New User
Joined: 07 Dec 2007 Posts: 26 Location: Bangalore
|
|
|
|
Hi,
I have a 'hex character' as part of a text string .
I want to remove this hex character and replace with spaces using a cobol statement.
For eg : THIS IS . ME
The . in the center represents the hex character . I want this to be replaced with spaces
like this : THIS IS ME .
I tried this command but its not removing the hex character.
INSPECT description REPLACING ALL LOW-VALUES BY SPACES
where description is the string with the hex character. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Please show some actaul sample data in hex, ("HEX ON") and use the "Code" tag to make the data more readable as well as preserve alignment. |
|
Back to top |
|
|
Aniyaa
New User
Joined: 07 Dec 2007 Posts: 26 Location: Bangalore
|
|
|
|
Suppose
The text is like this
input is
THIS IS X'30' ME (note: the x'30' is represented by a dot )
output has to be like
THIS IS ME |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
let' s reword the issue..
how to substitute blanks for unprintable chars ( in ISPF are shown as dots )
is this correct ?? |
|
Back to top |
|
|
Aniyaa
New User
Joined: 07 Dec 2007 Posts: 26 Location: Bangalore
|
|
|
|
exactly... enrico....
so happy.... you could figure it out..
the unprintable chars are part of a string .. I need the string , after replacing the unprintable chars with spaces..
I can replace one unprintable character using this command
INSPECT itemdescription OF WS-XML-TAG-DEFINITIONS
REPLACING ALL X'30' BY SPACES
but can i replace all the possible unprintable characters using some command ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
|