BookmarkSubscribeRSS Feed
Merlin_Shalini
Calcite | Level 5

file path and table name when input says does not exist error message

7 REPLIES 7
Merlin_Shalini
Calcite | Level 5
ERROR: File /home/u57834060/sasuser.v94/storm_summary.sas7bdat does not exist.Dont know if the file has been modified
Tom
Super User Tom
Super User

Please post more details.  For example copy the relevant lines of text from the SAS log and insert into your message using the pop-window that appears when you click on the Insert Code icon (The icon looks like < / > )

 

Are you sure the dataset is visible from the machine where SAS is running?

Merlin_Shalini
Calcite | Level 5
The autosave file for the file "p101a04.sas" is newer than the version you are opening. Would you like to load the autosave file instead?
proc contents data=/home/u57834060/EPG1V2/storm_summary.sas7bdat";
run;
1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc contents data=/home/u57834060/EPG1V2/storm_summary.sas7bdat";
                               _
                               22
                               76
 ERROR 22-322: Expecting a name.  
 
 ERROR 76-322: Syntax error, statement will be ignored.
 
 74         run;
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 77         ODS HTML CLOSE;
 78         &GRAPHTERM; ;*';*";*/;RUN;
 
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              254.93k
       OS Memory           29604.00k
       Timestamp           01/03/2021 07:11:01 PM
       Step Count                        24  Switch Count  0
       Page Faults                       0
       Page Reclaims                     96
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 NOTE: The SAS System stopped processing this step because of errors.
 78       !                           QUIT;
 79         QUIT;RUN;
 80         ODS HTML5 (ID=WEB) CLOSE;
 81         
 82         ODS RTF (ID=WEB) CLOSE;
 83         ODS PDF (ID=WEB) CLOSE;
 NOTE: ODS PDF(WEB) printed no output. 
       (This sometimes results from failing to place a RUN statement before the ODS PDF(WEB) CLOSE statement.)
 84         FILENAME _GSFNAME;
 NOTE: Fileref _GSFNAME has been deassigned.
 
 
 85         DATA _NULL_;
 86         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              459.84k
       OS Memory           22952.00k
       Timestamp           01/03/2021 07:11:01 PM
       Step Count                        25  Switch Count  0
       Page Faults                       0
       Page Reclaims                     26
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 87         OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
 88         
Tom
Super User Tom
Super User

You have unbalanced quotes. You have omitted the opening quote.  Fix that and see if it solves the problem.

proc contents data="/home/u57834060/EPG1V2/storm_summary.sas7bdat";

Merlin_Shalini
Calcite | Level 5
proc contents data="/home/u57834060/EPG1V2/storm_summary.sas7bdat";

ERROR: File /home/u57834060/EPG1V2/storm_summary.sas7bdat does not exist.

How do I know if the data file is not there or modified?

Thank you for your help

Merlin_Shalini
Calcite | Level 5
I am not able to run proc contents statement. I am stuck. Please help

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 736 views
  • 0 likes
  • 2 in conversation