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 rexx pgm to create multiple ps file IBM Tools 7
No new posts Mainframe batch Job or REXX to get VT... CLIST & REXX 7
No new posts calling OMEGAMON from REXX CLIST & REXX 3
No new posts Cobol-db2 : SQL query is running for ... DB2 4
No new posts REXX allocated datasets in JCL CLIST & REXX 9
Search our Forums:

Back to Top