PSZ
Program Size
This numeric system variable returns a value that is the size of the program currently in memory. The value returned is expressed as the decimal number of bytes. If PSZ is used from within a public program, it contains the program size of the public program only. If PSZ is used from within the main program, it contains the program size of the main program only.
Syntax
Section titled “Syntax”PSZExamples
Section titled “Examples”LET PROGRAM_SIZE = PSZIf PROGRAM_SIZE is assigned the value 3456, the size of the current program is 3456 bytes.
SAVE "PROG1", PSZ, 0, 0saves the program in memory under the name “PROG1” with the saved program size equal to the actual program size, on disk 0, at a starting sector determined by the system.
See also
Section titled “See also”PSAVE and SAVE directives
DSZ system variable
From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF