In RC/Query doing an LFREE line command next to a package receives:
BPA0002E: UNABLE TO DYNAMICALLY ALLOCATE FILE - RETURN CODE 0000410.
IKJ56246I FILE SYSTSPRT NOT ALLOCATED, FILE IN USE RETCODE = 8
Release : 20.0
Component : CA RC/Query for DB2 for z/OS
A users TSO logon proc may allocate SYSIN, SYSTSIN, SYSTSPRT and ISPFILE. These need to be freed prior to entering the products.
A FREE statement for the SYSTSPRT file needs to be added to the RSPMAIN member located in hilvl.CDBACLS0 PDS.
In the highlvl.CLIST(RSPMAIN) locate the %RSPINIT command and then add these statements before it:
FREE FI(SYSTSIN)
FREE FI(SYSIN)
FREE FI(ISPFILE)
FREE FI(SYSTSPRT)