@Deepak03 wrote:
I have Used 2 datasets which are in Assign library.
PSTN_FIle
Labels
I have Imported them in Assign library (Using SAS University edition)
Used following code :
data _null_; set ASSIGN.LABELS end=last; if _n_=1 then call execute('proc datasets library=ASSIGN nolist nodetails ; modify ASSIGN.PSTN_FILE; label'); call execute(cats(Variable,'=',label)); if last then call execute(';quit;'); run;
It's still giving me erros !! any help ?
The MODIFY statement in PROC DATASETS just wants the membername, not the full two level name.
You need quotes around the label value since it wants a string literal.
data _null_;
set ASSIGN.LABELS end=last;
if _n_=1 then do;
call execute('proc datasets library=ASSIGN nolist nodetails ;');
call execute('modify PSTN_FILE; label');
end;
call execute(cats(Variable,'=',quote(trim(label))));
if last then call execute(';quit;');
run;
... View more