Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

Removing "Variable is Uninitialized" NOTE Messages

When creating a new SAS table containing the definitions of new columns, which do not contain any actual data, the following NOTE message(s) are produced in the log window.

NOTE: Variable st_date is uninitialized.

These messages can be removed by adding a CALL routine statement after your column definitions. This will initialise all of your columns to missing.

data create_new_vars;
  attrib st_date length=8 format=date9. informat=date9. 
					label='Start Date'
         en_date length=8 format=date9. informat=date9.
					label='End Date'
         var_one length=$2 format=$2.   informat=$2. 
					label='Variable One'
         var_two length=$10 format=$10. informat=$10. 
					label='Variable Two';
  call missing (of _all_);

This method of avoiding uninitialised note messages should be used sparingly. When such messages do appear in the log, it is often an indication of mistyped column names or columns no longer needed.