I apologize for such a completely uninformed question, but I don’t know any SAS and just want to know what one line of code does, so I hope someone can help. I have a loop over an array of variables and an if clause based on a comparison with .Z , but this variable is not defined anywhere, so I assume this is a kind of SAS syntax trick. Here's the loop:
ARRAY PTYPE{*} X4216 X4316 X4416 X4816 X4916 X5016; DO I=1 TO DIM(PTYPE); IF (PTYPE{I}<=.Z) THEN PUT &ID= PTYPE{I}=; END;
So, in the first iteration, the loop checks to see if the value in X4216 less than .Z , and then ...? ID is another variable in the dataset, but I don't know what happens on the right side of this if clause. I briefly looked at the SAS documentation to find out that ampersands are related to macros, but my knowledge of SAS is limited to understand what is going on.
Can someone enlighten me?
source share