Hi All;
I a new in this community, I have a problem with data statement. I write a simple program as example:
data AUTOFILL_SERIAL;
set NWK.ALL2019;
do no=RANGE_START to RANGE_END;
output;
end;
run;
May I know how the program look likes if I need to save the output direct to permanent folder name 'NWK'. currently the output save directly to temporary Work Libraries.
tks
gee
Hi Rezza;
sorry not really familiar with program. Did I just need to add the libname as below .
libname NWK;
data NWK AUTOFILL_SERIAL;
set NWK.ALL2019;
do no=RANGE_START to RANGE_END;
output;
end;
run;
Still error , actually how the program should look like.
tks
gee
It's literally the code I wrote. You have to fill in the path and replace your data statement.
@gee21 wrote:
Hi Rezza;
sorry not really familiar with program. Did I just need to add the libname as below .
libname NWK;
data NWK AUTOFILL_SERIAL;
set NWK.ALL2019;
do no=RANGE_START to RANGE_END;
output;
end;
run;
Still error , actually how the program should look like.
tks
gee
Test this:
libname nwk 'path to folder'; data nwk.demo; set sashelp.class; run;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.