Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$STATUS^%ZISH: Return End-of-File Status

Reference Type: Supported, Category: Host Files, ICR#: 2320

Description

The $$STATUS^%ZISH extrinsic function returns the current end-of-file status. If end-of-file has been reached, $$STATUS^%ZISH returns:

Format

  $$STATUS^%ZISH

Input Parameters

none.

 

Output

returns:

Returns:

  • 1—End-of-file (EOF) has been reached.

  • 0—End-of-file (EOF) has not been reached.

Example

D OPEN^%ZISH("INFILE","USER$:[ANONYMOUS]","ZXG.DAT","R") 
Q:POP
U IO F I=1:1 R X:DTIME Q:$$STATUS^%ZISH  S ^TMP($J,"ZXG",I)=X
D CLOSE^%ZISH("INFILE")