Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Number of occurence of Search

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Number of occurence of Search
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: 2360
Location: Israel

PostPosted: Thu Jun 14, 2007 5:38 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Jun 17, 2007 9:16 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 0 Thu Dec 14, 2017 8:18 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us