I used a self defined important format to read ina time variable, but later when I tried to open the data set , I could not open it and got this info in the log:
Informat IMPORTDATETIME not found or couldn't be loaded for variable LOGIN_TIMESTAMP.
I re-run the format code when I imported it, and then I can open the data set. Is there a way to save the informat to overcome this issue?
Thank you. I will look into proc datasets.
The SAS option treating that as an error and preventing use of the set is FMTERR.
If you use
Options nofmterr;
you will get a message in the log about the missing format but can do anything with the set that does not require use of the missing format.
I have that set as a persistent system option because of the occasional dataset I get from other folks with such things and access to the format may not be possible.
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!
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.