全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1536 2
2016-03-06
%let a=begin;
%let b=%nrstr(&a);

%put %qupcase(&b);
%put %upcase(&b);

第一個是 begin  第二個是 &A

求講一下邏輯。。。

萬分感謝
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-3-6 09:25:20
我是这样理解的,不知道对不对?

%nrstr mask  &a 的resolve,所以b是&a,而不是begin

upcase(&b)就是 &A

但是qupcase resolve &&a为&a, 也就是a的值 begin
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-3-7 09:31:40
The %UPCASE and %QUPCASE functions convert lowercase characters in the argument to uppercase. %UPCASE does not mask special characters or mnemonic operators in its result, even when the argument was previously masked by a macro quoting function.

If the argument contains a special character or mnemonic operator, listed below, use %QUPCASE. %QUPCASE masks the following special characters and mnemonic operators in its result:

& % ' " ( ) + - * / < > = &not; ^ ~ ; , # blank
AND OR NOT EQ NE LE LT GE GT IN

%UPCASE and %QUPCASE are useful in the comparison of values because the macro facility does not automatically convert lowercase characters to uppercase before comparing values.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群