z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


lines()

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-lines--(--+------+--)---------------------------------------><
             '-name-'      

Function

Returns 1 if data remains in the stream; otherwise it returns 0. Programs should check for a value of 0 or nonzero.

Parameters

name
The name for the stream can be a path name or a string that was returned from the stream open or popen commands. If name is omitted, the standard input stream is used.

Example

To set more to nonzero, if stdin has data:
more=lines()   

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014