Hello Randy,
Your REXX program looks correct to me and will produce a list of global variables. As an additional recommendation, make sure you check the RDF tables in the OPSVIEW panel 2.6. RDF tables also consume space in the SYSCHK1 dataset.
Please, review this old post in this community where the clean up of the SYSCHK1 dataset is discussed:
CA OPS/MVS Tuesday Tip: Spring Cleaning
Regards,
Mario
Carlos Mario Filho
Principal Support Engineer