Language, Comments, Includes – Teledyne LeCroy SAS Suite User Manual User Manual

Page 230: Settings, Constants, Predefined constants

Advertising
background image

Version 6.25

SASSuite User Manual

220

LeCroy Corporation

Language

Comments:

'#' - Comment symbol. The line remainder after this symbol will be ignored.

'/*' '*/' - Comment Block. All the text between '/' '*' and '*' '/' is ignored.

/*

This is an example of a block of comments.

*/

Includes:

%include "FileName.inc" - This directive includes the file "FileName.inc". This lets the
user add common definitions and templates into new scripts.

Language parser makes sure the same file is not included more than once.

E

XAMPLE

:

%include "SomeInc.inc" # This directive will actually include file 'SomeInc_1.inc'

%inline - The same as %include, but without the Language parser check.

Settings

Using the "Set "Constant Name" = Value" statement, users can set different
constants/modes using the following value types:

Predefined constants (TRUE/FALSE/ON/OFF/INFINITE/etc)

Numbers

E

XAMPLES

:

Set AutoAlignSATA=ON

Set WaitTimeOut=239

Constants

Only unsigned integers can be defined as constants. Some constants are predefined in
SASTrainer.

E

XAMPLES

:

Const SOME_HEX_DATA = 0xAABBFFEE # defines hexadecimal
constant
Const SOME_DEC_DATA = 12 # defines decimal constant
Const "SOME DEC DATA" = 64 # defines decimal constant
Const "Some Hex Data" = 0xCDCDBEBE

Predefined

Constants

TRUE

FALSE

ON

OFF

INFINITE

Advertising