Format/informat

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 76
Accepted Solution

Format/informat

SAS gurus, please help
Input should be 12JUN16:16:30:55 and output should look like 06/12/2016 4:30:55 PM

Accepted Solutions
Solution
‎07-13-2017 02:41 PM
PROC Star
Posts: 7,431

Re: Format/informat


All Replies
Solution
‎07-13-2017 02:41 PM
PROC Star
Posts: 7,431

Re: Format/informat

Frequent Contributor
Posts: 76

Informat

SAS gurus., need help
Input should be 12JUN16:16:30:55 and output should look like 06/12/2016 4:30:55 PM
PROC Star
Posts: 7,431

Re: Format/informat

You can input using the anydtdtm informat. If you don't need seconds then the format I suggested in previous post will work. Otherwise, you could use proc format to create a specialized picture format (see: http://support.sas.com/kb/24/621.html )

 

Art, CEO, AnalystFinder.com

 

 

Frequent Contributor
Posts: 76

Re: Format/informat

Thanks it helps
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 204 views
  • 2 likes
  • 2 in conversation