BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
mgwynethj
Calcite | Level 5

I have uploaded a .sas7bdat file to SAS Studio and the file's path is /home/u63582165/abg_vbg_f23.sas7bdat (found it through file properties).

But when I run proc print data, it shows the table but it's null. 

mgwynethj_0-1694395840569.png

Here's the log:

mgwynethj_1-1694395886834.png

and the result

mgwynethj_2-1694395911151.png

 

Thanks,

Gwyneth

 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
SASKiwi
PROC Star

You don't use FILENAME and INPUT with SAS datasets as SAS already knows how to read them. This should work:

proc print data = '/home/u63582165/abg_vbg_f23.sas7bdat';
run;

You can also define a SAS LIBNAME pointing at SAS datasets in a folder:

libname MyData "/home/u63582165";

proc print data = MyData.abg_vgb_f23;
run;
mgwynethj
Calcite | Level 5

Thank you for your help !

 

Amir
PROC Star

Hi @mgwynethj,

 

Welcome to the forums, I hope you continue to have a good experience.

 

Please note that when a person provides a working answer then marking their post as the solution gives them the credit for their effort, which would be @SASKiwi in this case. You might be able to change which post you have marked as the solution, and it is also good to know for the future.

 

 

Thanks & kind regards,

Amir.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 598 views
  • 1 like
  • 3 in conversation