Please enable JavaScript to view this site.

A-Shell Reference

Added November 2016

The /MEMREQ switch displays the memory required for static variable storage for programs such as LIT, RUN and SBX files in place of the file size. When both /SSIZE (sort on file size) and /MEMREQ are specified, it also sorts based on the memory requirement.

Note that the value displayed by /MEMREQ is only a total for the combined sizes of the fixed variables in the program. While this is far short of the total operating system memory used by the program, which includes dynamic variable, stack and other auxiliary memory allocations, it is a good measure of how large your job memory partition needs to be. This is particularly true since 6.3.1518 when the string stack was moved to dynamic memory. A reasonable rule of thumb would be to set your partition size to 300-500K larger than the largest /MEMREQ value for your application. Use DIR /MEMREQ/SSIZE to find the largest values; don't forget to also check the LIT files in SYS: since some of them may have large requirements.

History

2016 November, A-Shell 6.3.1534, DIR.LIT 3.3(160):  Switch added to DIR