Hello!
I'm working on creating a label for variables that are being created, but I'd like them to have the old names as their labels. I keep gettin an error message saying there is a syntax error on the LABEL line.
Any help is greatly appreciated!!
DATA %SCAN(&DATA,&i); SET %SCAN(&DATA,&i); ARRAY %SCAN(&DATA,&i) [&Count] &List; ARRAY BIN_%SCAN(&DATA,&i)[&Count] BIN_%SCAN(&DATA,&i)1 - BIN_%SCAN(&DATA,&i)&Count; DO j = 1 TO &Count; IF %SCAN(&DATA,&i)(j) = '' THEN BIN_%SCAN(&DATA,&i)(j) = 0; ELSE BIN_%SCAN(&DATA,&i)(j) = 1; LABEL BIN_%SCAN(&DATA,&i)(j) = %SCAN(&DATA,&i)(j); END; FORMAT BIN_%SCAN(&DATA,&i)1 - BIN_%SCAN(&DATA,&i)&Count Issues.; RUN;
... View more