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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1314 views
  • 0 likes
  • 2 in conversation