11.06.2014 Views

NetRexx Tutorial - The Rexx Language Association

NetRexx Tutorial - The Rexx Language Association

NetRexx Tutorial - The Rexx Language Association

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Jumping FORWARD and<br />

BACKWARDS<br />

/* example3: simple loops */<br />

F=‚abc.def‘ /* a simple sample file */<br />

N=0<br />

Loop1:<br />

x = linein( F)<br />

if length(x) = 0 then signal end_of_file<br />

n = n + 1<br />

say x<br />

signal loop1<br />

End_of_file:<br />

say n ‚lines read‘<br />

exit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!