Can FREE=CLOSE be used on //SYSPRINT DD statement under release 11.6?

Document ID : KB000012245
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Can FREE=CLOSE be used on //SYSPRINT DD statement under release 11.6?

Environment:
CA Easytrieve Report Generator, release 11.6.
Answer:

CA Easytrieve R11.x compiler opens and closes SYSPRINT with C functions: FOPEN and FCLOSE.

There is no way to specify a file close parameter using FCLOSE under release 11.6.

Therefore, FREE=CLOSE cannot be used on //SYSPRINT DD statement under CA Easytrieve release 11.6.

CA Easytrieve release 6.4 compiler opens and closes SYSPRINT with QSAM assembler macros: OPEN and CLOSE.

QSAM macro CLOSE, provides a closing file disposition parameter which allows the use of FREE=CLOSE on the DD for //SYSPRINT.

This is why release 6.4 works with FREE=CLOSE on the DD for //SYSPRINT  DD statement.

 

Additional Information:

Please note:
Specifying FREE=CLOSE on the SYSPRINT DD statement under CA Easytrieve release 11.6 has this resulting abend:

+EZAC0000 CA-EASYTRIEVE system error EPR6 has been encountered+EZAC0001 Program execution cancelledIEF450I MEDEPATX STEP020 - ABEND=S000 U0020 REASON=C5D7D9F6