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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 844 views
  • 1 like
  • 2 in conversation