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

Find a string in a COBOL program using REXX


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

New User


Joined: 11 Feb 2009
Posts: 1
Location: India

PostPosted: Fri Feb 13, 2009 6:19 pm
Reply with quote

Hi All,

Please tell me how to find if the string 'main' appear in any line in a COBOL program using REXX, thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 13, 2009 6:28 pm
Reply with quote

Been requested too many times before - please use the search button at the top of the page
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 13, 2009 6:44 pm
Reply with quote

You can look at one or more of these functions:

POS.

SUBSTR.

SUBWORD.

WORD.

PARSE.

LASTPOS.

As well as a standard SUPERC search.
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 Using API Gateway from CICS program CICS 0
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top