Pregunta

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?

¿Fue útil?

Solución 2

I ended figuring it out

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

Otros consejos

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
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top