Table of Contents

JOURNL

Table Of Contents

  • [00004] JOURNL - ISSUE JOURNAL MESSAGE.
  • [00008] ISSUE JOURNAL MESSAGE.

Source Code

JOURNL.txt
  1. IDENT JOURNL
  2.  
  3. ENTRY JOURNL
  4. TITLE JOURNL - ISSUE JOURNAL MESSAGE.
  5. *COMMENT JOURNL - ISSUE JOURNAL MESSAGE.
  6. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  7. SPACE 4
  8. *** JOURNL - ISSUE JOURNAL MESSAGE.
  9. * J.C. BOHNHOFF. 72/07/09.
  10. SPACE 4
  11. *CALL,COMKMAC
  12. *CALL COMSPRD
  13. SPACE 4
  14. *** CALL FORMAT -
  15. *
  16. * FORTRAN EXTENDED
  17. * CALL JOURNL(TYPE,MESSAGE,LENGTH)
  18. * COBOL
  19. * ENTER JOURNL USING TYPE,MESSAGE
  20. *
  21. * WHERE - TYPE= JOURNAL FILE NUMBER,
  22. * COBOL - COMPUTATIONAL-1
  23. * FORTRAN EXTENDED - INTEGER
  24. * MESSAGE= LOCATION OF MESSAGE TO BE ISSUED.
  25. * LENGTH= LENGTH OF MESSAGE EXPRESSED IN CHARACTERS.
  26. * FORTRAN EXTENDED - INTEGER
  27.  
  28.  
  29. JOURNL PS ENTRY/EXIT
  30. SA2 X1 READ TYPE
  31. SA3 A1+1 READ ADDRESS OF MESSAGE
  32. UX2 X2
  33. SX4 X3 MESSAGE ADDRESS
  34. BX6 X4-X3 CHECK COBOL CALL
  35. NZ X6,JOU2 IF COBOL
  36. SA5 A3+1 READ LENGTH ADDRESS
  37. SA5 X5+ READ LENGTH
  38. JOU1 SX7 10 COMPUTE MESSAGE LENGTH IN WORDS
  39. SX5 X5+9 ROUND LENGTH UP
  40. LX2 36 POSITION TYPE
  41. IX5 X5/X7
  42. BX6 X2+X4 TYPE + ADDRESS
  43. LX5 18 POSITION MESSAGE LENGTH
  44. BX6 X6+X5 ADDRESS + LENGTH + TYPE
  45. SA6 JOUA STORE ARGUMENT WORD
  46. JOURNL A6 ISSUE REQUEST
  47. JP JOURNL RETURN
  48.  
  49. JOU2 AX3 36 EXTRACT MESSAGE LENGTH
  50. BX5 X3
  51. JP JOU1
  52.  
  53. JOUA CON 0 ARGUMENT STORAGE
  54.  
  55. END