IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

EQUIVALENT OF COBOL INSPECT IN REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Nov 22, 2013 10:44 am
Reply with quote

Hi All,

I want to convert below cobol statement in REXX.

INSPECT WS-INPUT
REPLACING ALL ' ' BY '3'
ALL LOW-VALUES BY '7'
ALL HIGH-VALUES BY '9'.

Do we have a equivalent verb in REXX for this? If not, how do I acheive it?

Please guide.
Back to top
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Fri Nov 22, 2013 10:48 am
Reply with quote

Praveen, you can try TRANSLATE function in REXX to achieve your requirement.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Nov 22, 2013 11:07 am
Reply with quote

Thanks a lot. Got it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
Search our Forums:

Back to Top