BookmarkSubscribeRSS Feed
sAura
Fluorite | Level 6

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?

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 744 views
  • 2 likes
  • 2 in conversation