I have trouble with importing both excel and csv files into SAS. It is stored on DropBox on a folder I have locally mapped.
I have tried with:
proc import datafile="C:\Users\Maria\Dropbox\Speciale\skriveri\DATA\sas\csv\prove.xls"
out=data
dbms=xls
replace;
run;
The message in the log is:
ERROR: Physical file does not exist,
C:\Users\Maria\Dropbox\Speciale\skriveri\DATA\sas\csv\prove.xls.
NOTE: The SAS System stopped processing this step because of errors.
I have also tried importing a csv file by replacing xls with csv.
I have checked the path - it's correct and the file names are prove.csv and prove.xls.
I have a 64 bit computer, and tested with SAS 9.3 and 9.2.
I doubt if SAS is able to see the Dropbox folder. Try putting the file in " C:\Users\Maria\" and see what happens.
Related
I have a reference to a folder that is on Oracle, but the libraries have already been transferred to the SAS server. I do not know how to add / change to open the file outside Oracle
datafile="&glb_path.\01_projects\credit\_test\RCDT2021.xlsx"
dbms=excel replace;
sheet="RCDTCOD";
getnames=yes;
mixed=yes;
usedate=yes;
scantime=yes;```
This folder is 1: 1 already on shared disc. ```\01_projects\credit\_test\RCDT2021.xlsx"```
I am trying indirect file load in Informatica.
I put below files in $PmSrcFilesDir (from here the workflow task pick up files)
-list.txt
-production_plan_20210906.csv
-production_plan_20210907.csv
The list.txt files contains the csv file names only.
I configured below options:
Source filetype- Indirect
Source filename- list.txt
Source file directory- $PMSourceFileDir
After running the workflow it shows error- as
FR_3000 Error Opening File...No such file or directory
You can give absolute path in list.txt.
/Path/to/file/production_plan_20210906.csv
/Path/to/file/production_plan_20210907.csv
You can use command task or shell script to get absolute path and file name.
Pls check session log, which file it cant read - list file or main file. If list file mention $PMSourceFileDir correctly in param file.
Now, make sure informatica user (user that runs infa server) has read access to those data, list folders and files. Admin can help.
Using PROC SQL I need to export a file in .sas7bdat format to a library. I can not export the file to my local machine. Using PROC EXPORT no DBMS option works.
Is exporting in this file type possible to my network library?
Thank you
I can't open my SAS EG Project with the error message :
"Unable to open file ...abc.egp as valid project file"
This is happen because when my hard disk is full and I was trying to save the project, so it wouldn't let EG to finish writing the project changes.
I've tried to clear the history but no luck.
Thanks
I suspect your SAS EG file might be irreversibly corrupt, so the focus is then on recovery of the file or its content.
If your disk drive is NTFS based, you might be able to recover the file. Check for previous versions in the file properties.
Also, what was the structure of your file inside? If it was a code driven program, then you can make a copy of the file, change extension to "zip" and then unzip the file or look inside for its contents. SAS EG projects are just ZIP archives with XML maps and related SAS code.
The last option is to see if you have logging enabled in your SAS EG. If you do, then all the code you run on that date would be available in your logs, so you can recover the code from the logs.
Regards,
Vasilij
I added an ODS path statement in the autoexec_usermods.sas on the workspace server like this:
ods path mylibrary.templat(read) WORK.TEMPLAT(UPDATE)
SASUSER.TEMPLAT(READ) SASHELP.TMPLMST(READ);
When I run a SAS 9.2 session on the server I can see that the template store from my library is added to the ODS path as expected.
However, when I start a session from Enterprise Guide 4.2 the ODS path is still the default path. I know the session has included the autoexec_usermods.sas because libraries that are defined there are available in my session. I suspect that Enterprise Guide runs some code in the background when starting a session that resets or defines the ODS path to the default path. I found a macros.sas in C:\Program Files\SAS\Shared Files\Images which contains a ODS TMPLPATH statement but the path defined here is also different from the default. So my guess is this is not the correct file or there is other code executed somewhere.
Any help on this is appreciated.
You can add this statement to the SAS Enterprise Guide options to guarantee that it is submitted when you connect to your SAS server. You can find the option under:
Tools->Options->SAS Programs: "Submit code when connecting to SAS server"
Check the box and add the code that you want to run.
More information at:
http://www.sascommunity.org/wiki/Tips:Project_Specific_Autoexecs_in_Enterprise_Guide