DATA Step, Macro, Functions and more

ISO FORMATS NOT LOADING

Reply
Occasional Contributor
Posts: 10

ISO FORMATS NOT LOADING

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?

Super User
Super User
Posts: 7,976

Re: ISO FORMATS NOT LOADING

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.;

Ask a Question
Discussion stats
  • 1 reply
  • 174 views
  • 2 likes
  • 2 in conversation