View previous topic :: View next topic
|
Author |
Message |
mounika9
New User
Joined: 22 Nov 2013 Posts: 4 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Have you tried ISPF option 3.14 which may well give you everything that you need |
|
Back to top |
|
|
mounika9
New User
Joined: 22 Nov 2013 Posts: 4 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
mounika9
New User
Joined: 22 Nov 2013 Posts: 4 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
mounika9
New User
Joined: 22 Nov 2013 Posts: 4 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
|