Hi all - Extending methods seen in a SUGI online paper I am trying to create a series of macro variables on the fly using a DO LOOP and SYMPUTX in a DATA _NULL_ step. My code and log output from a %put statement are below. Seemingly, this program only creates the first of an intended three macro variables, while assigning it the third value in the reference array. Any thoughts as to why, and correction much appreciated. Thanks, Shawn /***********************/ data _null_; set &tbdta; array ciset {*} ci1 ci2 ci3; do i=1 to dim(ciset); call symputx('var' || 'i',vname(ciset{i})); end; stop; run; %put _user_; GLOBAL DIM_VAR 3 GLOBAL MSTRDRV \\Confidential\CoreT GLOBAL SYSYR 2015 GLOBAL TBDTA tbdtawrk.tbcsdta_2009_06aug2015_int GLOBAL VARI ci3 GLOBAL YRCTO 1916
... View more