JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
Scripting Guide
•
Extending JMP
•
Working with SAS
• Get the Values of SAS Macro Variables
上一个
•
下一个
Get the Values of SAS Macro Variables
JMP provides several methods for querying SAS macro variables.
To show the
systime
value:
systime = sas << Get Macro Var("SYSTIME");
show(systime);
To show the defined SAS macro variables:
macro_names = sas << Get Macro Var Names();
show(macro_names);
To iterate through the SAS macro variables and print out the values:
macro_names = sas << Get Macro Var Names();
For( i = 1, i <= N Items( macro_names ), i++,
macro_value = sas << Get Macro Var( macro_names[i] );
output = macro_names[i] || " " || Char( macro_value );
Show( output );
);
To submit SAS code that defines “test” as a SAS macro variable and then gets the value from SAS:
sas << Submit( "%let test = 1;" );
test = sas << Get Macro Var( "test" );
Show( test );
All macro variable values will evaluate to numbers, if possible, otherwise they will be characters.