Help using Base SAS procedures

Time format question

Reply
Super Contributor
Posts: 358

Time format question

Hi All:

I know this has been asked before, but I'm having difficulty finding the answer...

I would like to get a time value in format of:  HHMM, with a leading zero and no separator.  I know that the

formats in the manual are incorrect because the Time and HHMM formats both say that they retain the leading

zero, but they don't.

I also though I could use format modifiers to remove the special characters, but that doesn't seem to remove the colon.

I have a feeling I'm going to get about 12 different answers...  do your worst!

Thanks in advance.

Respected Advisor
Posts: 3,777

Re: Time format question

Roll your own.

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