14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

560 JSL Syntax Reference Appendix A<br />

Assignment Functions<br />

Assign(a, b)<br />

a=b<br />

Description<br />

Places the value of b into a.<br />

Returns<br />

The new value of a.<br />

Arguments<br />

a Must be a variable.<br />

b Can be a variable, number, or matrix.<br />

Notes<br />

a must be a variable, because it must be able to accept a value change. A number as the first argument<br />

produces an error. If b is some sort of expression, it’s evaluated first and the result is placed into a.<br />

Divide To(a, b)<br />

a/=b<br />

Description<br />

Divides a by b and places the result into a.<br />

Returns<br />

The quotient.<br />

Arguments<br />

a Must be a variable.<br />

b Can be a variable, number, or matrix.<br />

See Also<br />

The Data Structures chapter in the <strong>Scripting</strong> <strong>Guide</strong>.<br />

Multiply To(a, b)<br />

a*=b<br />

Description<br />

Multiplies a and b and places the product into a.<br />

Returns<br />

The product.<br />

Arguments<br />

a Must be a variable.<br />

b Can be a variable, number, or matrix.<br />

Notes<br />

The first argument must be a variable, because its value must be able to accept a value change. A number<br />

as the first argument produces an error.<br />

For Multiply To(): Only two arguments are permitted. If one or no argument is specified, Multiply<br />

To() returns a missing value. Any arguments after the first two are ignored.

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

Saved successfully!

Ooh no, something went wrong!