SAS informat for£;使用9.1.3的值

SAS informat for£;使用9.1.3的值,sas,Sas,是否有SAS信息可用于9.1.3版(类似于9.2中的NLMNLGBP)中读取英镑值 如下文所示 data; x='£69'; y=input(x,NLMNLGBP3.);/* need 9.1.3 equivalent */ put y=; run; 我不相信9.1.3中有这个信息(根据谷歌) 你可以试试这个: data _null_; x='£69'; _x=input(compress(x,'£'),8.); y=put(_x,NLMNLGBP.); put y=; run; 我

是否有SAS信息可用于9.1.3版(类似于9.2中的NLMNLGBP)中读取英镑值

如下文所示

data;
x='£69';
y=input(x,NLMNLGBP3.);/* need 9.1.3 equivalent */
put y=;
run;

我不相信9.1.3中有这个信息(根据谷歌)

你可以试试这个:

data _null_;
 x='£69';
 _x=input(compress(x,'£'),8.);
 y=put(_x,NLMNLGBP.);
 put y=;
run;

我不相信9.1.3中有这个信息(根据谷歌)

你可以试试这个:

data _null_;
 x='£69';
 _x=input(compress(x,'£'),8.);
 y=put(_x,NLMNLGBP.);
 put y=;
run;

如果您将语言环境设置为“English_UnitedKingdom”,则可以使用
NLMNYw.d
informat

示例如下:

options locale=English_UnitedKingdom;
data _null_;
  format x y best12.;
  x=input('(£69)',nlmny32.2); /* parenthesis represents negative */
  y=input('£69',nlmny32.2);
  put x= y=;
run;
/*日志*/

x=-69 y=69

如果您将语言环境设置为“English_UnitedKingdom”,则可以使用
NLMNYw.d
informat

示例如下:

options locale=English_UnitedKingdom;
data _null_;
  format x y best12.;
  x=input('(£69)',nlmny32.2); /* parenthesis represents negative */
  y=input('£69',nlmny32.2);
  put x= y=;
run;
/*日志*/

x=-69 y=69