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: 239
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 Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


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