04-04-2017 02:59 AM
Im executing below code in SAS PC and getting an error like "ERROR: (execution) Matrix has not been set to a value."
and the same code executed successfully in SAS STUDIO and SAS EG.
Please help me on this.
INPUT percent country $40.;
outputpath = "&outputpath";
submit outputpath / R;
# read in the sas7bdat created in above sas code (FILE INPUT)
df2 <- read.sas7bdat("date.sas7bdat")
write.csv(df2, "&outputpath/dater.csv", row.names = FALSE)
04-04-2017 07:07 AM
You say "The same code executed successfully in SAS STUDIO and SAS EG." Where are you running it now?
If your goal is to transfer data from a SAS data set to an R data frame (and vice versa), you can use the