How do I calculate the percentage free space in the Queue file using the results of the LISTQ command?
search cancel

How do I calculate the percentage free space in the Queue file using the results of the LISTQ command?

book

Article ID: 259893

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Calculating the free space based LISTQ Command

Environment

Release : All Supported Releases of Workload Automation ESP

Cause

Receiving error message the ESP queue file is at a high percentage.

Resolution

How to determine freespace based on output below from the LISTQ entered in pagemode.

LISTQ                                                     
QUEUE DATA SET ESP.QUEUE                           
FORMATTED AT 14.45.55 ON TUESDAY JANUARY 28TH, 2014         
MAXIMUM SIZE 737280 BYTES                                   
HIGHEST ADDRESS USED 59792, 1560 BYTES IMBEDDED FREE SPACE 

FREE SPACE PERCENTAGE =((MAXIMUM SIZE - HIGHEST ADRESS USED + INBEDDED FREE SPACE) / MAXIMUM SIZE * 100

((737280 - 59792 + 1560 / 737280 * 100)) = 92.10 % FREE SPACE