BookmarkSubscribeRSS Feed
anandmgjsa
Fluorite | Level 6

Hi 

when I am using the below code. Its giving error : File does Oct_Dec_Data not exist.

data login_oct_dec;

set Login_old;

set 'Oct_Dec_Data'n;

run;

The file file is imported from excel and the 1st is the data set created from another program.

 

However, when I am running the code in a separate program window:

data login_oct_dec;

set 'Oct_Dec_Data'n;

run;

There is no error and the data is created successfully.

 

Please help.

4 REPLIES 4
Reeza
Super User
Please show the full log from both examples of code.
anandmgjsa
Fluorite | Level 6

Actually I am running it on VDI where I can not copy or snip any thing.

Reeza
Super User
Go to your work library and confirm that it exists. Run a PROC CONTENTS or such to verify it. Beyond that you'll need to work with SAS Tech support.
ballardw
Super User

@anandmgjsa wrote:

Hi 

when I am using the below code. Its giving error : File does Oct_Dec_Data not exist.

data login_oct_dec;

set Login_old;

set 'Oct_Dec_Data'n;

run;

The file file is imported from excel and the 1st is the data set created from another program.

 

However, when I am running the code in a separate program window:

data login_oct_dec;

set 'Oct_Dec_Data'n;

run;

There is no error and the data is created successfully.

 

Please help.


What do you mean by "separate program window"?

Using a one level name (no library) means the data is likely in the WORK library. However two separate SAS sessions of any type will almost certainly not have the same location for the WORK library.

Permanent libraries, if the libname points to the same location for the appropriate session, the data should be there but not Work.

 

 

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 324 views
  • 1 like
  • 3 in conversation