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.

Appendix A JSL Syntax Reference 615<br />

Graphic Functions<br />

Note<br />

This function is equivalent to the Excel function PPMT.<br />

Straight Line Depreciation(cost, salvage, life)<br />

Description<br />

Returns the straight-line depreciation of an asset for one period.<br />

Arguments<br />

cost The initial cost of the asset.<br />

salvage The value at the end of the depreciation.<br />

life The number of periods in the depreciation cycle.<br />

Note<br />

This function is equivalent to the Excel function SLN.<br />

Sum Of Years Digits Depreciation(cost, salvage, life, per)<br />

Description<br />

Returns the sum-of-years’ digits depreciation of an asset for a specified period.<br />

Arguments<br />

cost The initial cost of the asset.<br />

salvage The value at the end of the depreciation.<br />

life The number of periods in the depreciation cycle.<br />

per The length of the period, in the same units as life.<br />

Note<br />

This function is equivalent to the Excel function SYD.<br />

Graphic Functions<br />

Arc(x1, y1, x2, y2, startangle, endangle)<br />

Description<br />

Inscribes an arc in the rectangle described by the arguments.<br />

Returns<br />

Null.<br />

Arguments<br />

x1, y1 The point at the top left of the rectangle<br />

x2, y2 The point at the bottom right of the rectangle<br />

startangle, endangle The starting and ending angle in degrees, where 0 degrees is 12 o'clock and<br />

the arc or slice is drawn clockwise from startangle to endangle.

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

Saved successfully!

Ooh no, something went wrong!