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

Number of occurence of Search


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidusha

New User


Joined: 01 Feb 2006
Posts: 20
Location: Chennai

PostPosted: Thu Jun 14, 2007 4:04 pm
Reply with quote

Hi,

I want to search number of occurences of a string in n number of datasets

Say i have n sequential datasets as below
ABCD.D140607.DSN1
ABCD.D140607.DSN2
ABCD.D140607.DSN3
...
ABCD.D140607.DSNn

I want search a string 123456 in all these datasets.
My output should have number of occurences of the string in each dataset

eg.
ABCD.D140607.DSN1 5 (no of occurences)
ABCD.D140607.DSN2 4
ABCD.D140607.DSN3 1
...
ABCD.D140607.DSNn

How to go about for this?

Thanks
Vidusha
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jun 14, 2007 5:38 pm
Reply with quote

Start with SUPERC, then process the results using REXX.

O.
Back to top
View user's profile Send private message
Vidusha

New User


Joined: 01 Feb 2006
Posts: 20
Location: Chennai

PostPosted: Fri Jun 15, 2007 4:52 pm
Reply with quote

I have never used REXX.
Could you please provide the steps to achieve this..
Or is there anyway to find this without using REXX

Thanks
Vidusha
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Jun 17, 2007 9:16 am
Reply with quote

Well, you can always process the results of SUPERC in COBOL... icon_biggrin.gif

O.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top