Hi Darrylovia!
Thanks so much for answering
but something went wrong when I did the changes, I think i didn't really understand what to change (I am kind of new in MACRO).
Here are the changes I have done:
%macro ADJUST;
data _null_;
set list1 nobs=nobs;
call symbetn('nobs1',compress(put(nobs,11.)));
stop;
run;
%do I=1 %TO &nobs1 ;/*change to total number of records in data6*/
LOG:
data _null_; set list1 nobs=nobs; call symbetn('nobs1',compress(put(nobs,11.))); stop
-------
251
1 ! ; run;
ERROR 251-185: The subroutine SYMBETN is unknown, or cannot be accessed. Check your spelling.
Either it was not found in the path(s) of executable images, or there was
incorrect or missing subroutine descriptor information.