Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
linein() z/OS Using REXX and z/OS UNIX System Services SA23-2283-00 |
|
>>-linein--(--+-----------------------------+--)--------------->< '-name--+-------------------+-' '-,start-+--------+-' '-,count-' FunctionReturns one line or no lines from the stream specified in name, and sets the location for the next read to the beginning of the next line. The data is assumed to be text. The newline character is the line delimiter and is not returned. A null string is returned if no line is returned; this appears the same as a null line in the file. Use chars() or lines() to determine if you are at end of file. Use stream() to determine if there is an error condition on the stream. Parameters
ExampleTo read the next line:
To
read the first line in the file:
|
Copyright IBM Corporation 1990, 2014
|