FCLOSE Function: z/OS

Closes an external file, a directory, or a directory member.
Category: External Files
z/OS specifics: File close is strongly recommended
See: FCLOSE Function in SAS Functions and CALL Routines: Reference



Required Argument

specifies the identifier that was assigned when the file was opened, generally by the FOPEN function.


Files opened with the FOPEN function are not closed automatically after processing. All files that are opened with FOPEN should be closed with FCLOSE. For code examples, see FINFO Function: z/OS.