Error message
Posted: January 29th, 2017, 8:19 pm
Hi everybody. I am using this code from example and i have a problem with this error:
ERROR: Single variable - cannot have subscript (unexpected left parenthesis) near line 12 in DEPTO procedure
Best regards
ERROR: Single variable - cannot have subscript (unexpected left parenthesis) near line 12 in DEPTO procedure
Best regards
Code: Select all
PROC GLOBAL
numeric i;
array aCodMuni(153); //Códigos de municipio para el set de valores
array alpha(40) aNomMuni(153); //Nombres de municipio en el arreglo
PROC LBZIKA1_DIC_FF
PROC DEPTO
PREPROC
LF_DEP = DEPTO;
if loadcase(AREADIC_DICT, LF_DEP) = 0 then
errmsg("Departamento No existe, please reenter");
MOVE DEPTO;
endif;
do varying i = 1 until i > noccurs(AREADIC_DICT.AREADIC_REC)
aCodMuni(i-1) = LF_MUNI(i);
aNomMuni(i-1) = LF_NMUNI(i);
enddo;
aCodMuni(i-1) = notappl;
setvalueset(MUNI, aCodMuni, aNomMuni);