发布日期: 11/15/2021

Names

A name is simply something to call an item. When you assign the numeric value 3 to a variable in the expression a = 3, a is a name.

Commands and functions have names, too. In the expression Log( 4 ), Log is the name of the logarithmic function.

Names have a few rules:

Names must start with an alphabetic character or underscore and can continue with the following:

alphabetic characters (a-z A-Z)

numeric digits (0-9)

whitespace characters (spaces, tabs, line endings, and page endings)

mathematical symbols in Unicode (such as the Greek small alpha letter α)

a few punctuation marks or special characters (apostrophes (‘), percent signs (%), periods (.), backslashes (\), and underscores (_))

When comparing names, JMP ignores whitespace characters (such as spaces, tabs, and line endings). Upper case and lower case characters are not distinguished. For example, the names Forage and for age are equivalent, despite the differences in white space and case.

You can still have a name that is any other sequence of characters. If the name does not follow the rules above, it needs to be quoted and followed by "n". For example, to use a global variable with the name taxable income(2011), you must use "taxable income(2011)"n every time the variable appears in a script:

"taxable income( 2011 )"n = 456000;
tax = .25;
Print( tax * "taxable income( 2011 )"n) ;

114000

Note: Previously, the Name() parser directive wrapped the column name that contained illegal characters. Name() is deprecated.

For more information about how JMP interprets names, see Rules for Name Resolution.

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).