User Tools

Site Tools


cdc:nos2.source:nam5871:sscutd

SSCUTD

Table Of Contents

  • [00003] PROC SSCUTD
  • [00004] SSCUTD - UPDATE TIME OF DAY.
  • [00008] UPDATE TIME OF DAY.
  • [00039] PROC PDATE
  • [00040] PROC DATE
  • [00041] PROC CLOCK
  • [00042] PROC RTIME
  • [00043] PROC SSSAWR

Source Code

SSCUTD.txt
  1. *DECK SSCUTD
  2. USETEXT TEXTSS
  3. PROC SSCUTD;
  4. # TITLE SSCUTD - UPDATE TIME OF DAY. #
  5.  
  6. BEGIN # SSCUTD #
  7. #
  8. ** SSCUTD - UPDATE TIME OF DAY.
  9. *
  10. * F. HOU. 81/08/27.
  11. *
  12. * THIS PROCEDURE OBTAINS THE CURRENT TIME OF DAY FROM THE OPERATING
  13. * SYSTEM AND CHECKS FOR NEXT FIRE TIME PASSED.
  14. *
  15. * PROC SSCUTD
  16. *
  17. * ENTRY NONE.
  18. *
  19. * EXIT TIME OF DAY IS UPDATED.
  20. *
  21. * NOTES NONE.
  22. *
  23. * METHOD
  24. *
  25. * REQUEST TIME-OF-DAY FROM OPERATING SYSTEM.
  26. * IN BOTH PACKED FORMAT AND DISPLAY CODE.
  27. * IF NEXT-FIRE-TIME LESS THAN OR EQUAL TO TIME-OF-DAY,
  28. * CALL SSSAWR TO MAKE WORKLIST ENTRY FOR SSCRTR.
  29. * RETURN TO CALLER.
  30. *
  31. #
  32.  
  33. #
  34. **** PROC SSCUTD - XREF LIST.
  35. #
  36.  
  37. XREF
  38. BEGIN
  39. PROC PDATE; # PACKED DATE AND CLOCK, YYMMDDHHMMSS #
  40. PROC DATE; # OBTAIN DATE, YY/MM/DD.(DISPLAY CODE) #
  41. PROC CLOCK; # OBTAIN TIME, HH.MM.SS.(DISPLAY CODE) #
  42. PROC RTIME; # GET RTIME,(SECONDS,MILLISECONDS) #
  43. PROC SSSAWR; # ACCEPT WORKLIST REQUEST #
  44. END
  45.  
  46. #
  47. ****
  48. #
  49.  
  50. ITEM TEMP C(10); # TEMP FOR DATE AND CLOCK #
  51. ITEM TEMPI U; # TEMP INTEGER FOR RTIME #
  52.  
  53. CONTROL EJECT;
  54.  
  55. PDATE(TEMPI); # PACKED DATE & CLOCK #
  56. CTM$PWD[0]=TEMPI;
  57.  
  58. DATE(TEMP); # OBTAIN DATE (DISPLAY CODE) #
  59. CTM$DATE[0]=TEMP;
  60.  
  61. CLOCK(TEMP); # UPDATE CURRENT TIME (DISPLAY CODE) #
  62. CTM$CLOCK[0]=TEMP;
  63.  
  64. RTIME(TEMPI); # UPDATE RTIME #
  65. CTM$RT[0]=TEMPI;
  66.  
  67. IF (CTM$FTIME[0] LQ CTM$RTSEC[0])
  68. THEN
  69. BEGIN
  70. SSSAWR(SSCRTRW); # ACCEPT WORKLIST REQUEST FOR SSCRTR #
  71. END
  72.  
  73. END # SSCUTD #
  74.  
  75. TERM
cdc/nos2.source/nam5871/sscutd.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator