%pclose() function

The %pclose() function closes the stream designated by stream opened by a %popen() and returns the exit status of the command.

Syntax

var = %pclose((char*)stream)
Note: This function must be used only to close a stream opened by %popen().