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.

706 JSL Syntax Reference Appendix A<br />

Utility Functions<br />

Argument<br />

n Optional, integer. If no argument is specified, all the lines are returned. If a positive number is<br />

specified, the first n lines are returned. If a negative number is specified, the last n lines are returned.<br />

If n=0, no lines are returned (an empty list). If the log is empty, an empty list is returned.<br />

Get Name Info(address, )<br />

Description<br />

Converts a numeric address to its name.<br />

Returns<br />

A list of strings. The first element is the command (GetNameInfo). The second is the results (for<br />

example, “ok” if the command was successful). The third is a list of strings of information. Included in<br />

that information is the port name that corresponds to the address that was supplied.<br />

Arguments<br />

address A string that specifies the numeric address (for example, 149.173.5.120).<br />

port The port of the address.<br />

Get Path Variable()<br />

Description<br />

Retrieves the value of name, a path variable.<br />

Returns<br />

The absolute pathname as a string.<br />

Argument<br />

name A quoted string that contains a path variable. (Examples: SAMPLE_DATA,<br />

SAMPLE_SCRIPTS)<br />

Get Platform Preferences(

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

Saved successfully!

Ooh no, something went wrong!