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

How can we find out who created a particular dataset?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
babathakur855
Warnings : 1

New User


Joined: 19 Feb 2008
Posts: 2
Location: Pune

PostPosted: Thu May 15, 2008 11:44 am
Reply with quote

How can we find out who created a particular dataset?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 15, 2008 12:10 pm
Reply with quote

SMF type 61 records should do the trick

Example on the forum - I posted it
Back to top
View user's profile Send private message
babathakur855
Warnings : 1

New User


Joined: 19 Feb 2008
Posts: 2
Location: Pune

PostPosted: Thu May 15, 2008 1:05 pm
Reply with quote

expat wrote:
SMF type 61 records should do the trick

Example on the forum - I posted it


Hi,

I am not able to get your point on SMF type 61 could you please eloborate where exactly i need to specify this?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 15, 2008 2:23 pm
Reply with quote

The system will create SMF records for each and every event that happens on the system, unless they have been switched off for particular functions, which is most rare.

Type 61 records are for the creation of a catalog record, i.e. a dataset is being cataloged which in 99.99% of cases means being created.

The job below which you could not find, or perhaps bother looking for, will extract the information from the required SMF records to answer your question.

May I suggest that you swat up on SMF data as it really is quite useful at times.

Code:

//EXTRACT  EXEC PGM=SORT                     
//SYSOUT   DD SYSOUT=*                       
//SORTIN   DD DSN=Dumped SMF dataset
//SORTOUT  DD DSN=Your output dataset         
//            DISP=(,CATLG,DELETE),           
//            SPACE=(TRK,(75,75),RLSE),       
//            RECFM=FB,LRECL=330             
//SYSIN    DD *                               
 SORT      FIELDS=COPY                       
 INCLUDE   COND=(6,1,CH,EQ,X'3D',AND,         
                 121,44,SS,EQ,C'Find this DSN')
 OUTFIL    OUTREC=(51,8,X,67,8,X,121,44)     
Back to top
View user's profile Send private message
Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Wed Jul 01, 2009 7:53 am
Reply with quote

Is there any other method to find out this information?

To list all the datasets in the DASD and who created the dataset and when was it created?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Jul 01, 2009 8:52 am
Reply with quote

Hello,

If you want complete info, you need to use the smf data. . .

You will often not be able to detemine "who" created a dataset because it was not created by "someone", but rather by some process.
Back to top
View user's profile Send private message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Thu Jul 02, 2009 11:07 am
Reply with quote

Expat, I tried with your code. But, I got the abend ABENDU0126. My code was,

//EXTRACT EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=SYSZ.SMF.HEATHER.WEEKLY.G0394V00,DISP=SHR
//SORTOUT DD DSN=T1.S88.#Z774.USER,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(75,75),RLSE),
// RECFM=V,LRECL=330
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(6,1,CH,EQ,X'3D',AND,
121,44,SS,EQ,C'T1.S88.#Z774.TEST')
OUTFIL OUTREC=(51,8,X,67,8,X,121,44)


The error message was,
SORT FIELDS=COPY
INCLUDE COND=(6,1,CH,EQ,X'3D',AND,
121,44,SS,EQ,C'T1.S88.#Z774.TEST')
OUTFIL OUTREC=(51,8,X,67,8,X,121,44)
E RECORD TYPE IS V - DATA STARTS IN POSITION 5
9 INCONSISTENT SORTOUT IFTHEN 0 REFORMATTING FIELD FOUND
0 C5-K26318 C6-K90007 C7-K90000 C8-K23476 E9-K90007 E7-K24705

SYSZ.SMF.HEATHER.WEEKLY.G0394V00 is the weekly backup of SMF data. Im new to SMF data. Please assist me on this.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 02, 2009 1:06 pm
Reply with quote

I do recall at the time of posting the original code that there was a slight problem, but can not recall what it was.

I think it may have been the OUTFIL statement.
Back to top
View user's profile Send private message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Thu Jul 02, 2009 3:07 pm
Reply with quote

Thanks Expat, the problem is coming from OUTFIL only... Now, It is working good... icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 02, 2009 3:09 pm
Reply with quote

In fact, at a guess I would say that you have forgotten to put 1,4, at the start of your OUTREC statement.

try
Code:

  OUTFIL OUTREC=(1,4,51,8,X,67,8,X,121,44)   


Ooops, should have hit "REFRESH" before posting and saw that you fixed it. Well done for fixing it yourself icon_wink.gif
Back to top
View user's profile Send private message
manojkumar.sesuraj

New User


Joined: 15 Apr 2009
Posts: 43
Location: Mumbai

PostPosted: Thu Jul 02, 2009 4:28 pm
Reply with quote

It is working fine... icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top