1) The CONTINUE transfers control to the bottom of the loop. This is the END statement, consequently the three assignment statements are not executed when VAR is missing. Note that since you are using a DOW loop, the DATA statement will only be executed once for each unique ID. 2) During the execution phase, non-retained variables are set to missing, when the DATA statement is executed. In this case these will be any variables that are not on the incoming data set (A). 3) the KEEP= data set option will be applied to the data set it is associated with. To control incoming variables use it on the data set on the SET statement. When used with the data set(s) on the DATA statement, the KEEP= applies to the new data set.
... View more