BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
zimcom
Pyrite | Level 9

Hi all,

 

How can I convert the time_1, time_2 and time_3 into time8. format?

 

SUBJECTtime_1time_2time_3
11796118:4919:0219:20
11803615:0315:3515:50
11806619:4020:1020:15
1181180:040:250:49
11815123:0623:3023:40
1183779:189:39 
11868214:3915:06 
11873012:4513:0413:22
11887218:0018:2318:49
11887416:1116:1816:56
11887515:5216:1516:27
11905423:510:060:18
11912115:0415:1515:34
11949511:4212:1312:25
11955513:0012:5913:11
11962118:3218:4819:05
1196518:208:41 
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Time_num = input(time, hhmmss. );

fornat time_num time.;

View solution in original post

2 REPLIES 2
Reeza
Super User

Time_num = input(time, hhmmss. );

fornat time_num time.;

zimcom
Pyrite | Level 9

Thank you, Reeza

sas-innovate-2024.png

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.

 

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
  • 2 replies
  • 736 views
  • 0 likes
  • 2 in conversation