Who created the VSAM file?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
VijayMatutiDeshekar
Registered Member
Posts: 10
Joined: Sun Feb 21, 2016 9:09 am

Who created the VSAM file?

Post by VijayMatutiDeshekar »

Hi,

Can you tell if there is a way to tell who has created a given VSAM file? Like the way we can find it for PDS using "G" in front of the PDS. Can we produce similar results for VSAM too? Please let me know.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Who created the VSAM file?

Post by zprogrammer »

Try this

Code: Select all

//STEP01 EXEC PGM=IDCAMS                                        
//SYSPRINT DD  SYSOUT=*                                          
//SYSOUT   DD  SYSOUT=*                                          
//SYSIN    DD  *    
   LISTCAT ENT('<VSAM FILE NAME>') ALL 
/*   
zprogrammer
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Who created the VSAM file?

Post by Robert Sample »

Can you tell if there is a way to tell who has created a given VSAM file?
Questions like this are always tough to answer -- partly because you didn't provide enough information, and partly because the answer may well depend upon the site. For example, if the VSAM data set (only Unix System Services on z/OS has files -- VSAM is not in Unix and hence is not a file, although a VSAM data set could be a Unix mount point which is totally off the point) was created by a batch job and the batch job was run by the scheduler and the batch job was added to the schedule 11 years ago by someone who hasn't worked for the company for 4 years and the OWNER field was set in IDCAMS to someone who hasn't worked for the company in 2 years -- who created the VSAM data set?

Furthermore, I suspect the putting a 'G' in front of the data set may be something site-specific to your site, so you may want to talk to your site support group about your request.
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Who created the VSAM file?

Post by Anuj Dhawan »

LISTCAT can have owner listed as "NULL"! May be you can look at SMF Record Type 61 which is written during any processing that results in a DEFINE request to Catalog Management Services. But even though what Robert has said remains very much relevant.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
VijayMatutiDeshekar
Registered Member
Posts: 10
Joined: Sun Feb 21, 2016 9:09 am

Re: Who created the VSAM file?

Post by VijayMatutiDeshekar »

Pandora-Box wrote:Try this

Code: Select all

//STEP01 EXEC PGM=IDCAMS                                        
//SYSPRINT DD  SYSOUT=*                                          
//SYSOUT   DD  SYSOUT=*                                          
//SYSIN    DD  *    
   LISTCAT ENT('<VSAM FILE NAME>') ALL 
/*   
I know LISTCAT but it does not talk about any 'creator' of it? Where should I look for this info? Or you mean something else by this job?
VijayMatutiDeshekar
Registered Member
Posts: 10
Joined: Sun Feb 21, 2016 9:09 am

Re: Who created the VSAM file?

Post by VijayMatutiDeshekar »

What further info you might need Robert? But I understand the way you explain it. But for test and QA testing we might need such information, even there it can not be done?

G worked for me for both the companies worked for, so I thought it's a universal command.
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Who created the VSAM file?

Post by Anuj Dhawan »

VijayMatutiDeshekar wrote:
Pandora-Box wrote:Try this

Code: Select all

//STEP01 EXEC PGM=IDCAMS                                        
//SYSPRINT DD  SYSOUT=*                                          
//SYSOUT   DD  SYSOUT=*                                          
//SYSIN    DD  *    
   LISTCAT ENT('<VSAM FILE NAME>') ALL 
/*   
I know LISTCAT but it does not talk about any 'creator' of it? Where should I look for this info? Or you mean something else by this job?
Unless 'am mistaken, he meant you to look for OWNER in the LISTCAT listing.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Who created the VSAM file?

Post by enrico-sorichetti »

G worked for me for both the companies worked for, so I thought it's a universal command.
I checked the ISPF ( zOS 2.1 ) manuals for the G command
and it is used on the member list panel to reset the ispf statistics
B Browse the member
C Copy the member
D Delete the member
E Edit the member
I Data set information
G Reset the member
J Submit the member
M Move the member
P Print the member
R Rename the member
T TSO command
VView the member
W WS command
= Repeat last command
wiser to double check before posting misleading information ( whatever the source might be )
and anyway the ID is available ONLY for PDS[e] members with the statistics turned on
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
VijayMatutiDeshekar
Registered Member
Posts: 10
Joined: Sun Feb 21, 2016 9:09 am

Re: Who created the VSAM file?

Post by VijayMatutiDeshekar »

oh sorry for the confusion it might created. What I meant was G in front of the member of a PDS and not of PDS.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Who created the VSAM file?

Post by enrico-sorichetti »

and it is used on the member list panel to reset the ispf statistics
What I meant was G in front of the member of a PDS and not of PDS.
thats exactly what the quote tells

You are still confusing things
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
VijayMatutiDeshekar
Registered Member
Posts: 10
Joined: Sun Feb 21, 2016 9:09 am

Re: Who created the VSAM file?

Post by VijayMatutiDeshekar »

Enrico I am afraid that I am not following you. Can you explain what do you want to convey?
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”