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
Opal | Level 21

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
Ammonite | Level 13

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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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