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

we have batch report which run daily at 12:00 ist which need small changes.

 

in the cureent batch report it calculate overall time taken as starting from 12;00 ist from till the end of job completion which include sleep time also .

can you help me how can exclude sleep time calculation so that it should provide extact batch report.

 

i am new to sas enivornment.i m bit worry to do can  anyone help me out.

1 ACCEPTED SOLUTION

Accepted Solutions
rinsabraham
Obsidian | Level 7
I got the solution:
Below is the code:
Proc sql;
Select max(start_time)-max(end_time) from table name where column = sleep time:
Quit;

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Please provide example input data and desired output.

PG
rinsabraham
Obsidian | Level 7
Thanks for reply I got the result.
I try to fetch the data from table and took the difference between two times
rinsabraham
Obsidian | Level 7
I got the solution:
Below is the code:
Proc sql;
Select max(start_time)-max(end_time) from table name where column = sleep time:
Quit;

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1535 views
  • 0 likes
  • 3 in conversation