DATA Step, Macro, Functions and more

libname statement

Reply
Occasional Contributor
Posts: 10

libname statement

hi,

 

    can any one help for me 

 

 

 

 

libname jack '/folders/myshortcuts/myfolder/aprsales';
proc print data=jack.aprsales;
run;

 

while running this caode error

 

ERROR: File JACK.APRSALES.DATA does not exist.

Trusted Advisor
Posts: 1,137

Re: libname statement

Did you check if there is any dataset APRSALES in the path /folders/myshortcuts/myfolder/aprsales

I guess there is no dataset by name aprsales in the path given or even if there is a file by name aprsales it might not be a sas dataset (sas7bdat).

Please check
Thanks,
Jag
PROC Star
Posts: 1,760

Re: libname statement

As above. You probably mean:

 

libname jack '/folders/myshortcuts/myfolder';
proc print data=jack.aprsales;
run;

Super User
Posts: 19,855

Re: libname statement

You set up your myfolder incorrectly. Follow the installation instructions exactly, then the other posts on here and instructions will work as expected. 

 

Your folder is called myfolder (no s) when it should be myfolders. 

 

Set this up, restart your VM and then use the path and code below, I suspect this is what you're trying to do anyways...a stab in the dark really. You should include more details in your post in the future.

 

libname jack '/folders/myfolders/';

proc print data=jack.aprsales;
run;
Ask a Question
Discussion stats
  • 3 replies
  • 124 views
  • 0 likes
  • 4 in conversation