Hi SAS Users,
While I try to export the output to sas7bdat type to a specific folder, with the code below, I face the double output problems
The code is
libname myfolder 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation';
proc copy in=work out=myfolder;
select argentina_sum;
run;
quit;
The output shows two identical output:
I am wondering if there is any way that I can still export the output argentina_sum as above but it only shows 1 output argentina_sum in the output list?
Many thanks and warm regards!
Please do a directory listing (outside SAS, preferrably from a cmd window with dir) of the folder.
I have a suspicion about the files that you see.
In which user interface do you see the two entries?
Enterprise Guide Library list, SAS Studio Libraries, or the Explorer in Display Manager (Base SAS native interface)?
It is Enterprise Guide Library list.
Many thanks!
Hi @Ksharp
When applying the addtional code, the results still shows double results
libname myfolder 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation1';
proc copy in=work out=myfolder memtype=data;/*add code memtype=data*/
select Argentina_;
run;
quit;
Many thanks and warm regards.
Please do a directory listing (outside SAS, preferrably from a cmd window with dir) of the folder.
I have a suspicion about the files that you see.
Actually, they should show
argentina_.sas7bdat argentina_.sas7bview
as SAS file names are always lowercase on Windows and UNIX systems. If you find capital letters in such filenames, they are a cause for trouble.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.