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

Is there a way to find properties of an existing GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anu Narayanan

New User


Joined: 12 Sep 2005
Posts: 20
Location: USA

PostPosted: Wed Oct 11, 2006 8:54 pm
Reply with quote

Hi,

Is there a way to find properties of a GDG that is already present like whether it is created with Noscratch, empty or what is the maximum versions it can hold etc?

Thanks for your replies.

Thanks,
Anu Narayanan
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Oct 11, 2006 9:30 pm
Reply with quote

Try FileAid Utility option F.FA;3.2

enter GDG base and press enter


Code:

GDG base dataset name: xxxx.TESTGDG                                     
                                                                               
GDG dataset limit:     7         (Maximum number of generations, 1-255)       
                                                                               
Active generations:    3         (Generations that are currently allocated)   
                                                                               
Owner:                                                                         
                                                                               
Expiration date:                                                               
                                                                               
Uncatalog options:     NOEMPTY   (EMPTY     = All generations are uncataloged 
                                  NOEMPTY   = Oldest generation is uncataloged)
Scratch  options:      NOSCRATCH (SCRATCH   = Scratch when uncataloged         
                                  NOSCRATCH = Uncatalog only)                 
                                                                               
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Oct 11, 2006 9:37 pm
Reply with quote

You can also submit a job with

Code:

//LISTC1   EXEC PGM=IDCAMS                 
//SYSPRINT DD SYSOUT=*                     
//SYSIN    DD *                             
      LISTCAT ENT (xxxx.TESTGDG) ALL
/*                                         
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Oct 12, 2006 4:41 am
Reply with quote

You would like it rather running a job... Although its same what Rasheed suggested.

Try it on your ISPF Panel.
Code:
TSO LISTC ENT('DATASET.NAME') ALL
Back to top
View user's profile Send private message
Anu Narayanan

New User


Joined: 12 Sep 2005
Posts: 20
Location: USA

PostPosted: Thu Oct 12, 2006 8:54 pm
Reply with quote

Hi Rasheed,

The JCL worked out. But I am not sure as how to go in to file aid F.FA;3.2
I went to F for file aid from ISPF panel. But I am not able to get in to FA, i tried 3.2 alone after F, But i am not able to see any option for finding the properties of a GDG.

Thanks,
Anu Narayanan
Back to top
View user's profile Send private message
Anu Narayanan

New User


Joined: 12 Sep 2005
Posts: 20
Location: USA

PostPosted: Thu Oct 12, 2006 8:55 pm
Reply with quote

Hi priyesh,

Thanks for the information. The command TSO LISTC ENT('DATASET.NAME') ALL in ISPF panel worked out.

Thanks,
Anu Narayanan
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Oct 12, 2006 9:07 pm
Reply with quote

Anu,

You will need to find in your shop where FileAid is located. Once you get to FileAid , select option '3' from 'Primary Option Menu' and then '2' from
' Extended Utilities' menu. Entering '2' will take you to 'Dataset Utility' menu. Here you can specify GDG base in 'Dataset or path ===>' and press enter.

Hoep this helps.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Jan 05, 2007 8:21 pm
Reply with quote

hy Anu,

therefore this was a rexx post:
you can use that TSO command asis in your rexx,
and capture its output for further work...

address tso
"listc ent('gdg-base')......

martin9
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Jan 05, 2007 10:54 pm
Reply with quote

Martin,

Where have you been? We've missed you icon_smile.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Jan 06, 2007 5:16 am
Reply with quote

Quote:
Martin,

Where have you been? We've missed you

Yeap... Long time no see...
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts sort to find out the char which repea... Mainframe Interview Questions 10
No new posts Compare 2 alphabets in a REXX and fin... CLIST & REXX 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:


Back to Top