Calculate the percentage free space in the Queue file using the results of the LISTQ command?
search cancel

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

Need to determine the FREE SPACE of the QUEUE file.

Environment

Component: ESP Workload Automation

Release : All Releases 

Cause

Receiving error message ESP336E Insufficient queue space

Resolution

To determine free space 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, 2025         
MAXIMUM SIZE 737280 BYTES                                   
HIGHEST ADDRESS USED 59792, 1560 BYTES IMBEDDED FREE SPACE 

Calculate FREE SPACE:

FREE SPACE PERCENTAGE =((MAXIMUM SIZE - HIGHEST ADDRESS USED + IMBEDDED FREE SPACE) / MAXIMUM SIZE * 100

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