By admin | August 13, 2009

SAS Certified Adv Programmer 50 Questions (16)

Given the following SAS data set Mylib.Mydata:

Mylib.Mydata

Name Animal Age
Max Cat 9
Brown Dog 22
Large Pig 1

The following SAS program is submitted:

data _null_;
    set mylib.mydata;
    call symput('animal' || left(_n_), name);
run;
%let i=2;
title "The value is &&animal&i";

Which one of the following does the TITLE statement resolve to?

a. The value is Dog
b. The value is animal2
c. The value is Brown
d. The value is &animal2

2 comments | Add One

  1. admin - 08/13/2009 at 2:28 pm

    C

  2. Consty - 02/12/2013 at 7:27 pm

    C: indirect call at second position = brown

Leave a Comment

Leave a Reply

Your email address will not be published.