View previous topic :: View next topic
|
Author |
Message |
Raj24186
New User
Joined: 04 May 2010 Posts: 9 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
What do you mean by characters position in dataset?
line and column number???? |
|
Back to top |
|
|
Raj24186
New User
Joined: 04 May 2010 Posts: 9 Location: Chennai
|
|
|
|
I just need the column number to be checked..Line number won't be necessary.. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Raj24186
New User
Joined: 04 May 2010 Posts: 9 Location: Chennai
|
|
|
|
Thanks expat. I shall look into it!! |
|
Back to top |
|
|
|