You could write a rexx exec to do this, and then execute it in batch via your 
job scheduler, or via automation that runs at system shutdown.   I am not aware 
of anything canned to do this.

If you would consider moving the data back into a unix filesystem then I can 
suggest you create a temp filesystem(TYPE(TFS)) which is a memory only 
filesystem.  Every IPL the filesystem is gone.  On our systems /tmp is thrown 
away with every IPL.

MOUNT FILESYSTEM('/&HFSSYS./TMP')    
   MOUNTPOINT('/tmp')                 
   TYPE(TFS) MODE(RDWR) PARM('-s 256')
   UNMOUNT                            


_________________________________________________________________
Dave Jousma
Assistant Vice President, Mainframe Engineering
[email protected]
1830 East Paris, Grand Rapids, MIĀ  49546 MD RSCB2H
p 616.653.8429
f 616.653.2717



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Fred Kaptein
Sent: Thursday, July 03, 2014 1:37 PM
To: [email protected]
Subject: USS commands to clear log

Hello,
We have a mainframe system running z/OS R1.13.
We have the following USS file mounted to a MVS data set
   \tmp\daemon.log.b

This file has grown very large over time, as it is not being cleared out on a 
regular basis.
What commands can we issue during a shutdown of our z/OS system that would do 
the following:
    - clear all but the previous 30 days data
    - clear all data

If possible, we want to clear this USS file out when z/OS is being shut down, 
so that it will be clean during the next IPL.
We do not want to effect the USS file permissions nor the MVS data set.  

Any suggestions would be appreciated.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

This e-mail transmission contains information that is confidential and may be 
privileged.   It is intended only for the addressee(s) named above. If you 
receive this e-mail in error, please do not read, copy or disseminate it in any 
manner. If you are not the intended recipient, any disclosure, copying, 
distribution or use of the contents of this information is prohibited. Please 
reply to the message immediately by informing the sender that the message was 
misdirected. After replying, please erase it from your computer system. Your 
assistance in correcting this error is appreciated.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to