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

Get a string from User and count the number of repeated word


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
syed-sameer-ahmed
Warnings : 2

New User


Joined: 22 Feb 2007
Posts: 45
Location: Bangalore

PostPosted: Wed Apr 11, 2007 2:53 pm
Reply with quote

Hello,

Can anybody tell me how to count the number of repeated words in a given string.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Apr 11, 2007 3:31 pm
Reply with quote

Use the built-in functions WORD and WORDINDEX within a loop.

In edit macro, you can use FIND_COUNT.

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

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 4
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts After newcopy the CICS program user f... CICS 7
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
Search our Forums:


Back to Top