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

Somehow dataset is getting empty


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

New User


Joined: 23 Feb 2007
Posts: 7
Location: USA

PostPosted: Tue Oct 09, 2007 9:13 pm
Reply with quote

Somehow dataset is getting empty in our system. We are trying to figure out who is emptying the file.

Here is the scenario.

We have two different applications. My application job creates output flat file that is used by the other group.

We are getting calls from the other group saying that their job is failing because file is empty. Their job can’t handle empty file.

Whenever We get calls from the other group. We look at the file. It is empty but our job sysout shows how many records it had written. We tell the other group that you guy’s emptying the file. They said know you guy’s giving us empty file.

Our job runs around 3:00AM and their jobs run around 5:00 AM. Some times Flat file is getting empty in between. These jobs run early morning and we only get called when their job is failed. We never had a chance to look this file after 3:00AM and also it happens occasionally.

We did not make any changes to job and program but it is happing since three months.
Our job creates the file and the other group processes that file and deletes that file. They said they only delete when it is successfully.
We two groups only use that file.

Do you know any tool or utility we can use to identify who is accessing that file between 3:00 AM and 5:00 AM?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 09, 2007 9:16 pm
Reply with quote

Take a dump of the SMF dataset and process the open/Close records
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Oct 09, 2007 10:03 pm
Reply with quote

Insert a print step to print the contents of the file after creation to prove that it is getting populated for the other group.

Also, it seems to me that not being able to handle an empty file is poor system design.
Back to top
View user's profile Send private message
rlnraju1979

New User


Joined: 23 Feb 2007
Posts: 7
Location: USA

PostPosted: Tue Oct 09, 2007 11:33 pm
Reply with quote

Thanks for your reply.


do you have sample jcl for 'Take a dump of the SMF dataset and process the open/Close records'

I never done it before.

Regards,
raju
Back to top
View user's profile Send private message
rlnraju1979

New User


Joined: 23 Feb 2007
Posts: 7
Location: USA

PostPosted: Tue Oct 09, 2007 11:58 pm
Reply with quote

Thanks, I found following sample jcl and ran in our system.

//SMFSCAN EXEC PGM=IFASMFDP,REGION=4M
//SYSPRINT DD SYSOUT=*
//DUMPIN DD DSN=SYS1.MAN1.xxxx,DISP=SHR
//DUMPOUT DD DSN=xxx.xxxxx.TEST,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(1,10),RLSE),
// DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=27998)
INDD(DUMPIN,OPTIONS(DUMP))
OUTDD(DUMPOUT,TYPE(14:15))
DATE(2007000,2007282)
START(0000)
END(2400)

it generated report for whole system...is there anyway i can get only for the dataset i am looking for...is there any unique name assiagend to that data set in SMF?

Appreciate your help.

Regards,
Raju
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 10, 2007 12:07 am
Reply with quote

Quote:

do you have sample jcl for 'Take a dump of the SMF dataset and process the open/Close records'


It' s not that simple,
I suggest You talk to the storage support group to verify that :
smf collection is activated for dataset open/close/activity
( record types 14/15/42s - if I remember correctly )

as far as smf processing is concerned,
unless Your support has something already written
I would suggest to ask them to look on the net for a freeware utility
called DAF - Dataset Audit Facility
http://www.geocities.com/michaeljosephcleary/Freeware.html
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 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
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top