Hi there I'm struggling with the following macro. I'm quite new to the macro language and picking it up as I go along, so it may well be something pretty fundamental that I've misunderstood. %let ref = %sysfunc(open(libname.filename)); %macro name; %do i = 5 %to &errstop; %let variname = %sysfunc(varname(&ref,&i)); ...some more code... %end; %mend; The log tells me that &errstop resolves to 25 and that &ref resolves to 1, but I then get the following error: WARNING: Argument 1 to function VARNAME refrenced by the %SYSFUNC or %QSYSFUNC macro function is missing or out of range. Can anyone help me to understand what that means, please? Thanks Katy
... View more