Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search a string in GDG using FILEAID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: Search a string in GDG using FILEAID
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: 8795
Location: Welsh Wales

PostPosted: Wed Nov 27, 2013 12:54 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Dec 03, 2013 10:02 pm    Post subject:
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    Post subject: Reply to: Search a string in GDG using FILEAID
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: 2365
Location: Hampshire, UK

PostPosted: Wed Dec 04, 2013 5:29 pm    Post subject:
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    Post subject: Reply to: Search a string in GDG using FILEAID
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

Site Director


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

PostPosted: Wed Dec 04, 2013 7:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to convert Hex String t char hex Martylin PL/I & Assembler 6 Fri Jun 05, 2020 7:45 pm
No new posts Get next 5 numeric from a string of '... maxsubrat COBOL Programming 7 Fri Apr 24, 2020 2:30 pm
No new posts RegEX search in ISPF editor jzhardy TSO/ISPF 4 Mon Apr 20, 2020 10:46 am
No new posts Finding a string and concatinating mu... ArunkumarGanesan DFSORT/ICETOOL 11 Thu Jan 09, 2020 5:59 pm
No new posts ISPF search - capturing result jzhardy TSO/ISPF 15 Sat Dec 07, 2019 5:20 am

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