Multiple choice technology programming languages

How does the following macros will resolve? What will be the output in log file? %let one=two; %let two=three; %let three=one; %put &one; %put &&one; %put &&&one;

  1. two, two, one

  2. two, three, one

  3. two, two, three

  4. two, two, two

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In SAS macros, &one resolves to 'two' (first PUT). &&one triggers double resolution - it resolves &one to 'two', then resolves &two to 'three' (second PUT). &&&one is triple resolution - &one to 'two', &two to 'three', &three to 'one' (third PUT). The output is: two, two, three. Option C is correct.