Trying to get all the datetime values into ISO format specified in the code, but gettig error.
218 data mnfst_data;
219 set mnfst_data;
220 format SASFILE_END_TIME $N8601EHw.d
----------
48
ERROR 48-59: The format N8601EHW was not found or could not be loaded.
even same for other ISO formats as well.
Is there some file i need to run in my local sas system to have them loaded?
I think you misunderstand formats. When you see a format explained in the document they will often write:
$N8601EHw.d
What this means when disected is, it is a character format - from the $, name is N8601EH, the width should be specified as an integer replacing the w, the .d indicates how many decimals. For example:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003170493.htm
Now in your example, you have not replaced "w.d" with the relevant information and n8601ehe.d is not the valid name for a format. Unless you need to specify the width, you can omit it and get the defaults:
format SASFILE_END_TIME $N8601EH.;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.