array region{22} region_1 - region_22;
array ais{22} ais_1 - ais_22;
array trhead{22} trhead1-trhead22;
do i = 1 to dim(ais) ;
if region(i)='HEAD' then do trhead(i)=ais(i); end;
-
73
ERROR: The variable type of trhead is invalid in this context.
ERROR: Illegal reference to the array trhead.
ERROR 73-322: Expecting an =.
448 array region{22} $ region_1 - region_22;
449 array ais{22} ais_1 - ais_22;
450 array trhead{22} trhead1-trhead22;
451 do i = 1 to 22 ;
452 if region(i)='HEAD' then do trhead(i)=ais(i); end;
-
73
ERROR: The variable type of trhead is invalid in this context.
ERROR: Illegal reference to the array trhead.
ERROR 73-322: Expecting an =.
The second ones should be numeric, but it still isn't working. Thanks for your help. I'm calling tech support.
513 array region{22} $ region_1 - region_22;
514 array ais{22} $ ais_1 - ais_22;
515 array trhead{22} $ trhead1-trhead22;
516 do i = 1 to 22 ;
517 if region(i)='HEAD' then do trhead(i)=ais(i); end;
-
73
ERROR: The variable type of trhead is invalid in this context.
ERROR: Illegal reference to the array trhead.
ERROR 73-322: Expecting an =.