I have already selected the solution. I was making a file path name mistake. But nonetheless I have learnt from your detailed comment too. Thanks again.
This was correct. It wasn't working because of file path mistake. Now it works fine.
That code shouldn't have worked regardless of system.
What you realy need is:
On windows SAS system run the code:
filename cpt '...enter path and filename';
proc cport data= <libref>.inventory file=cpt; run;
then copy the above file to your MAC and run next code on MAC system:
filenmae cpt ' ... path and filename on MAC ';
proc cimport infile=cpt lib=WORK; run; /* or change work to any libref preffered */
You may need check syntax of PROC CPORT / PROC CIMPORT to addapt to your systems.
From where did you obtain your file inventory.sas7bdat?
There is a bunch of dataset to practice on. I made sure that they are not corrupted or broken as other people are also using it. In fact I used a completely different data set again just to make sure the problem is not with one file. But getting the same error.
When you used this code:
data abcd.inventory;
infile "/folders/myfolders/inventory.sas7bdat";
both lines refer to the same system file. That was the cause of the
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.