midrange.com code scratchpad
Name:
calculate schedule time for SBMJOB
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
11/12/2014 08:54:07 pm
IP:
Logged
Description:
calculate schedule time for SBMJOB
Code:
  1. dGetTime          pr                                 
  2. d CurTime                        8a                  
  3. d Skip_Ahead                     6a                  
  4.                                                      
  5. dGetTime          pi                                 
  6. d CurTime                        8a                  
  7. d Skip_Ahead                     6a                  
  8.                                                      
  9. d Jump_Ahead      s             10i 0                
  10. d Work_Time       s               t                  
  11.    If Skip_Ahead = ' ';                              
  12.      Skip_Ahead = '5';                               
  13.    EndIf;                                            
  14.    Jump_Ahead = %Int( Skip_Ahead );                  
  15.    Work_Time = %Time() + %Minutes( Jump_Ahead );     
  16.    CurTime = %Char(Work_Time:*HMS);                  
  17.    Return;            
© 2004-2019 by midrange.com generated in 0.005s valid xhtml & css