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

Search a string in GDG using FILEAID


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mounika9

New User


Joined: 22 Nov 2013
Posts: 4
Location: India

PostPosted: Wed Nov 27, 2013 12:41 pm
Reply with quote

Hi,

I need to search a string in all the gdg generations and get the generationS which is having that particular string in the output dataset

I searched the forum and got a jcl.Here is my jcl which I have written

[/img]

Now, My problem is .. I am getting all the GDG versions into output file.
But I need only gdg generation which has that particular string.

I tried many ways but nothing is working. Please help me out
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Nov 27, 2013 12:54 pm
Reply with quote

Have you tried ISPF option 3.14 which may well give you everything that you need
Back to top
View user's profile Send private message
mounika9

New User


Joined: 22 Nov 2013
Posts: 4
Location: India

PostPosted: Tue Dec 03, 2013 9:31 pm
Reply with quote

Hi Dick,

Thanks for your quick response

I tried 3.14 and 3.15 too.
When I tried to give my GDG name.. It is saying "dataset not catalagued"
My gdg is catalogued and it has generations too

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

Moderator Emeritus


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

PostPosted: Tue Dec 03, 2013 10:02 pm
Reply with quote

Hello and welcome to the forum,

Quote:
When I tried to give my GDG name.. It is saying "dataset not catalagued"
Where did you enter the gdg name? Possibly you did not enclose the dsn in quotes?

Quote:
My gdg is catalogued and it has generations too
If there were no generations, there would be no data . . .
Back to top
View user's profile Send private message
mounika9

New User


Joined: 22 Nov 2013
Posts: 4
Location: India

PostPosted: Wed Dec 04, 2013 12:38 pm
Reply with quote

Hello Dick,

TEST.MY.GDG is the GDG I am using


My Exact requirement is ..I need to search a gdg and output should be all the generations conataining that particular stirng.

We are having fileaid in our shop. We also use icetool and dfsort in our system.

Thanks for your response
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Wed Dec 04, 2013 5:29 pm
Reply with quote

Please do not post screenshots - a simple cut and paste and use the code tags is sufficient and uses fewer resources.
When it says 'Data Set Name' it means a data set name not a GDG base. It goes off and looks for that specific name and, of course, it does not find it.
    Go into 3.4
    enter test.my.gdg.* and bring up the list
    enter 'srchfor string to find' on the command line
    when the search is finished press (P)F1 and note the dataset where the results are stored.

That was a very quick experiment on my part - why couldn't you do it too?
Back to top
View user's profile Send private message
mounika9

New User


Joined: 22 Nov 2013
Posts: 4
Location: India

PostPosted: Wed Dec 04, 2013 7:14 pm
Reply with quote

Hi Nic,

Thanks for your response.

I want generations in a dataset. Because I want to search a string in different GDG'S and all the versions can be stored in a single dataset. SoI am trying for jcl where I can include all my GDG bases.

Dick,

I acheived my desired output by using fileaid only. Instead of using $$DD01 LIST OUT = 0
IF (1,EQ,31832329) where 3178... stands for search string

I used this

$$DD01 LIST IF(1,EQ,31832329).


Thank you so much for the support. I gained a lot thru this forum
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Dec 04, 2013 7:30 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts ICETOOL to SUM String DFSORT/ICETOOL 1
No new posts Mark Previous & next lines when a... DFSORT/ICETOOL 9
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
No new posts Help with C character vs C string All Other Mainframe Topics 3
Search our Forums:

Back to Top