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
 

 

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: 247
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


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