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

Command to determine a character's poisition in REXX


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

New User


Joined: 04 May 2010
Posts: 9
Location: Chennai

PostPosted: Fri May 21, 2010 9:56 am
Reply with quote

Hi,
Can someone tell me if there is a command in REXX to determine a character's position in a dataset? I want to check only for a single character? Can the SUBSTR function be used for this purpose?

Thanks,
Rajesh
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri May 21, 2010 10:06 am
Reply with quote

Hello,

You could use an edit macro and "find" the character.

There are multiple topics in the forum showing edit macros.

Depending on the size of the file, REXX may not be a good choice.

You could run superc in batch and do this as well.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri May 21, 2010 10:06 am
Reply with quote

What do you mean by characters position in dataset?

line and column number????
Back to top
View user's profile Send private message
Raj24186

New User


Joined: 04 May 2010
Posts: 9
Location: Chennai

PostPosted: Fri May 21, 2010 10:20 am
Reply with quote

I just need the column number to be checked..Line number won't be necessary..
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 21, 2010 12:00 pm
Reply with quote

There is a sticky at the top of the CLIST / REXX forum for manuals and/or reference materials.

Use the links provided in that topic and look for the POS statement.
Back to top
View user's profile Send private message
Raj24186

New User


Joined: 04 May 2010
Posts: 9
Location: Chennai

PostPosted: Mon May 24, 2010 1:33 pm
Reply with quote

Thanks expat. I shall look into 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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top