Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
Location: Back in jolly old England

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: 19270
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: 1714
Location: 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: 19270
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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Need a help how to replace a string i... gurunath82 CLIST & REXX 12 Tue Jul 26, 2016 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us