BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Emma_at_SAS
Lapis Lazuli | Level 10

Hello,

I cleaned a data set and at the end of the cleaning, I saved the clean SAS data set, as permanent data.

Because during my data cleaning I created some format values (using PROC FORMAT; ), now I must read the format file before reading the permanent SAS file. otherwise, For each missing format, I get an error and the following warning

ERROR: The format VARIBLE_1 was not found or could not be loaded.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.temp_clean_SAS_data may be incomplete.  When this step was stopped there were 0 observations and 42 variables.
What is an efficient way to save and access the clean data set at the end of the data cleaning process?
 
Thanks

 

*saving the clean data set;

libname clean "&path";
data clean.permanent_clean_SAS_data;
set temp_clean_SAS_data;
run;

 

*reading the permanent clean data set;

libname import "&path";
data temp _data;
set import.permanent _clean_SAS_data;
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@Emma_at_SAS wrote:

Hello,

I cleaned a data set and at the end of the cleaning, I saved the clean SAS data set, as permanent data.

Because during my data cleaning I created some format values (using PROC FORMAT; ), now I must read the format file before reading the permanent SAS file. otherwise, For each missing format, I get an error and the following warning

ERROR: The format VARIBLE_1 was not found or could not be loaded.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.temp_clean_SAS_data may be incomplete.  When this step was stopped there were 0 observations and 42 variables.
What is an efficient way to save and access the clean data set at the end of the data cleaning process?
 
Thanks

 

*saving the clean data set;

libname clean "&path";
data clean.permanent_clean_SAS_data;
set temp_clean_SAS_data;
run;

 

*reading the permanent clean data set;

libname import "&path";
data temp _data;
set import.permanent _clean_SAS_data;
run;

 


There is nothing wrong with accessing the data.

Set

OPTIONS NOFMTERR;

 

You apparently have the option set for FMTERR, which treats a missing format as an error.

OR make sure the format is available.

 

 

Are you attempting to redefine the library?!?

 

Once a library is assigned in a current session just use that library name is the typical approach.

View solution in original post

1 REPLY 1
ballardw
Super User

@Emma_at_SAS wrote:

Hello,

I cleaned a data set and at the end of the cleaning, I saved the clean SAS data set, as permanent data.

Because during my data cleaning I created some format values (using PROC FORMAT; ), now I must read the format file before reading the permanent SAS file. otherwise, For each missing format, I get an error and the following warning

ERROR: The format VARIBLE_1 was not found or could not be loaded.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.temp_clean_SAS_data may be incomplete.  When this step was stopped there were 0 observations and 42 variables.
What is an efficient way to save and access the clean data set at the end of the data cleaning process?
 
Thanks

 

*saving the clean data set;

libname clean "&path";
data clean.permanent_clean_SAS_data;
set temp_clean_SAS_data;
run;

 

*reading the permanent clean data set;

libname import "&path";
data temp _data;
set import.permanent _clean_SAS_data;
run;

 


There is nothing wrong with accessing the data.

Set

OPTIONS NOFMTERR;

 

You apparently have the option set for FMTERR, which treats a missing format as an error.

OR make sure the format is available.

 

 

Are you attempting to redefine the library?!?

 

Once a library is assigned in a current session just use that library name is the typical approach.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 501 views
  • 1 like
  • 2 in conversation