Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Replace CRLF character to String

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

New User


Joined: 09 Jun 2004
Posts: 3

PostPosted: Wed Sep 14, 2005 3:27 pm    Post subject: Replace CRLF character to String
Reply with quote

I have String of 455 chars. It may contain Carriage Return in between. Is there any way to check for availablity of Carriage return and if Found, I have to replace the Carriage Return with spaces.

The hex value of CRLF is X'0D25'.

Thanks

Seenu
Back to top
View user's profile Send private message

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 268
Location: Cincinnati OH USA

PostPosted: Thu Sep 15, 2005 3:10 am    Post subject:
Reply with quote

INSPECT REPLACING


Dave
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Sep 15, 2005 6:40 am    Post subject:
Reply with quote

There is more than 1 solution to the problem you state. But some may not be appropriate to your situation.

BTW, just what is your situation? Are you reading a file in a pgm; is it a production problem; is it a one time test situation; can you access the file in ISPF edit, etc.
Back to top
View user's profile Send private message
osurendhra

New User


Joined: 01 Jun 2005
Posts: 2
Location: Hyderabad

PostPosted: Thu Sep 15, 2005 12:23 pm    Post subject: Re: Replace CRLF character to String
Reply with quote

INSPECT Str-name REPLACING ALL X'0D25' BY SPACES.
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
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Replace last name by first name anatol DFSORT/ICETOOL 10 Thu Mar 15, 2018 3:43 pm
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm
No new posts How to replace the below query? pkmurali DB2 12 Tue Feb 27, 2018 9:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us