Please enable JavaScript to view this site.

A-Shell Reference

xcall FILNAM, ch, fname

FILNAM.SBR returns the filename when only the file channel is known. This is frequently useful in conjunction with error trapping, where the trapping routine identifies the file only by channel.

Parameters

ch  (Num)  [in]

the channel that the file is open on

fname  (String)  [out]

will return the filename (as specified in the open statement) corresponding to the specified file channel. If no file is open on that channel, fname returns a null string.