I mean resize in the term of change the CURRENT size of a file (for instance the event message file) and specifically for truncating it.
What evtsize does is to change the MAXIMUM size of the event message file, as referred in Technote you pointed to:
As reported in bold, evtsize does not change the CURRENT size of the file but the maximum size it can reach if growing.
Differently said, I'd like to know if the event message file can be cut/truncate.
file is of 200 bytes. I launch
to set the CURRENT size of the file to 20bytes.
Definitely I'd like to know if the event message file can be truncated.
I hope my question about the message file is clear.
Original Message:
Sent: Thu August 10, 2023 08:08 AM
From: Satid Singkorapoom
Subject: IBM Workload Scheduler (IWS) 9.5: resize message file in ./TWSDATA/pobox
Fabio
>>>> evtsize does show/compact/set the maximum size the message file can reach, not resizing it. <<<<
The Technote contains the following description :
[QUOTE]
evtsize {-V | -U | -show <file_name> | -compact <file_name> | <file_name> <new_size>}
- This command changes the size:
evtsize Mailbox.msg 20000000
AWSDEK703I Queue size current 0, maximum 10000000 bytes (read 48, write 48)
AWSDEK702I File Mailbox.msg maximum size changed to 20000000 bytes
[UNQUOTE]
Is this not the "resize" you originally asked about? If not, what was the actual meaning of "resize" that you used in your original question? The word "compact" definitely has a different meaning from "resize". Do you actually want something similar to table reorganization in database world? If so, this is nor resize, it's compacting the content of the file.
------------------------------
Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
------------------------------
Satid S.
Original Message:
Sent: Thu August 10, 2023 03:43 AM
From: DSI Unix
Subject: IBM Workload Scheduler (IWS) 9.5: resize message file in ./TWSDATA/pobox
Hello Satid,
thanks for replying.
The technote does not provide the answer to my question.
evtsize does show/compact/set the maximum size the message file can reach, not resizing it.
I already set the maximum size of the file message of the workstation that I referred to my post:
evtsize -show WINDISP01.msg
IBM Workload Scheduler (UNIX)/EVTSIZE 9.5.0.02 (20200410)
Licensed Materials - Property of IBM* and HCL**
5698-WSH
(C) Copyright IBM Corp. 1998, 2016 All rights reserved.
(C) Copyright HCL Technologies Ltd. 2016 All rights reserved.
* Trademark of International Business Machines
** Trademark HCL Technologies Limited
AWSDEK703I Queue size current 24888230, maximum 100000000 bytes (read 48, write 24888278).
I'd like to truncate or zeroing it with something like:
truncate -s 48 WINDISP01.msg
Is it safe to do it?
Thanks.
Best regards,
Fabio
------------------------------
DSI Unix
Original Message:
Sent: Thu August 10, 2023 01:49 AM
From: Satid Singkorapoom
Subject: IBM Workload Scheduler (IWS) 9.5: resize message file in ./TWSDATA/pobox
I did a Google search with "ibm /TWSDATA/pobox" and found this Technote that I hope provides the answer for you: Displaying and changing the current size limit of the TWS event files at https://www.ibm.com/support/pages/displaying-and-changing-current-size-limit-tws-event-files
It's the use of the command evtsize {-V | -U | -show <file_name> | -compact <file_name> | <file_name> <new_size>}
------------------------------
Education is not the learning of facts but the training of the mind to think. -- Albert Einstein.
------------------------------
Satid S.
Original Message:
Sent: Wed August 09, 2023 10:11 AM
From: DSI Unix
Subject: IBM Workload Scheduler (IWS) 9.5: resize message file in ./TWSDATA/pobox
Hello,
we have a workstation in IWS 9.5 which is currently powered off, so it's unlinked.
We cannot set it to Ignore as it's a system that could be powered on for automation tasks.
We are evaluating to resize it periodically because we would like to avoid it to reach the maximum message file size (which we set to the max of 100000000 bytes).
The question: is it possible to truncate/resize a message file? I find some documentation about how to rename it but we could not find how to resize it.
Thanks in advance for your replies.
Best regards,
Fabio
------------------------------
DSI Unix
------------------------------