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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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