I need to build an array in SAS on MVS

I tried using

ARRAY MONTHS[12] $3 ('JAN' 'FEB' 'MAR' ... 'DEC');

but that is not working

Any suggestions?

有帮助吗?

解决方案 2

I ended figuring it out

ARRAY MONTHS{*} JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC;

其他提示

I don't have an MVS implementation to test on.

But why not try the MONNAME3. format?

1240  data test;
1241  x=1;
1242  y = put(x,monname3.);
1243  put x= y=;
1244  run;

x=1 y=Jan
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top