문제

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