Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Somehow dataset is getting empty

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Somehow dataset is getting empty
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Oct 09, 2007 9:16 pm    Post subject: Reply to: Somehow dataset is getting empty
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 09, 2007 10:03 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Oct 10, 2007 12:07 am    Post subject: Reply to: Somehow dataset is getting empty
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us