14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

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.

588 JSL Syntax Reference Appendix A<br />

Conditional and Logical Functions<br />

Note<br />

Continue works with For and While loops, and also with For Each Row.<br />

For(init, while, increment, body)<br />

Description<br />

Repeats the statement(s) in the body as long as the while condition is true. Init and increment<br />

control iterations.<br />

Returns<br />

Null.<br />

Arguments<br />

init Initialization of loop control counter.<br />

while Condition for loop to continue or end. As long as the conditional statement while is true, the<br />

loop is iterated one more time. As soon as while is false, the loop is exited.<br />

increment Increments (or decrements) the loop counter after while is evaluated every time the loop is<br />

executed.<br />

body Any number of valid JSL expressions, glued together if there are more than one.<br />

Example<br />

mysum = 0; myprod = 1;<br />

For( i = 1, i

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

Saved successfully!

Ooh no, something went wrong!