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.;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.