User Tools

Site Tools


cdc:nos2.source:nam5871:lfgnlfh

LFGNLFH

Table Of Contents

  • [00007] WRITE NLF HEADER.

Source Code

LFGNLFH.txt
  1. *DECK LFGNLFH
  2. USETEXT LFGFET,LFGIOD,LFGDB,LFGPRF
  3. PROC LFGNLFH;
  4. BEGIN # WRITE NLF HEADER #
  5. *IF DEF,IMS
  6. #
  7. ** LFGNLFH - WRITE NLF HEADER.
  8. *
  9. * M. E. VATCHER 81/02/23
  10. *
  11. * LFGNLFH WRITES A 7700 TABLE AT THE BEGINNING OF THE NLF.
  12. *
  13. * PROC LFGNLFH
  14. *
  15. * ENTRY NONE.
  16. *
  17. * EXIT NONE.
  18. *
  19. * METHOD
  20. *
  21. * FILL IN 7700 TABLE HEADER. FILL IN DATE, TIME, VERSION, AND
  22. * LEVEL. WRITE RECORD TO NLF.
  23. *
  24. #
  25. *ENDIF
  26.  
  27. #
  28. **** PROC LFGNLFH - XREF LIST BEGIN.
  29. #
  30.  
  31. XREF
  32. BEGIN
  33. PROC CLOCK; # GET TIME OF DAY #
  34. PROC DATE; # GET DATE #
  35. PROC REWIND; # REWINDS SPECIFIED FILE #
  36. PROC RECALL; # RETURNS CONTROL WHEN RECALL BIT IS SET #
  37. PROC VERSION;
  38. ITEM WFET U; # FWA OF NLF FET #
  39. PROC WRITER; # WRITE RECORD #
  40. PROC WRITEW; # WRITE WORDS TO CIO BUFFER #
  41. END
  42.  
  43. #
  44. ****
  45. #
  46.  
  47. *CALL NAMLEV
  48.  
  49. ARRAY VERCALL [0:0] S(1);
  50. BEGIN
  51. ITEM VC$BC U(00,00,12) = [ 5 ];
  52. ITEM VC$ZERO U(00,12,30) = [ 0 ];
  53. ITEM VC$ADDR U(00,42,18);
  54. END
  55.  
  56. ITEM I U;
  57. ITEM OPS C(10); # OPERATING SYSTEM VERSION #
  58. ITEM STATIS C(10);
  59.  
  60. VC$ADDR[0] = LOC(OPS); # PREPARE FOR VERSION CALL #
  61. P<SIOFET> = WFET;
  62. FETCRI[0] = 1; # INITIALIZE CURRENT RANDOM INDEX #
  63. FETOUT[0] = FETFST[0]; # PREPARE FOR WRITE #
  64. FETIN[0] = FETFST[0];
  65.  
  66. P<PRF$TABLE> = LOC(DIRB$WORD[0]);
  67. PRF$ID[0] = PRF$IDENT; # SET TABLE IDENTIFIER #
  68. PRF$WC[0] = O"16"; # SIZE OF PREFIX TABLE #
  69. PRF$ZERO1[0] = 0;
  70. PRF$LFN[0] = "NLF ";
  71. PRF$ZERO2[0] = 0;
  72. DATE(STATIS); # GET DATE #
  73. PRF$DATE[0] = C<1,8>STATIS; # FILL IN DATE #
  74. CLOCK(STATIS); # GET TIME #
  75. PRF$TIME[0] = C<1,8>STATIS; # FILL IN TIME #
  76. VERSION(VERCALL); # GET OPERATING SYSTEM VERSION #
  77. PRF$OPS[0] = OPS; # FILL IN OS VERSION #
  78. PRF$PRNAME[0] = "LFG ";
  79. PRF$PRVER[0] = C<9,3>NAMVER;
  80. PRF$PRLEV[0] = NAMLV[0];
  81. PRF$BLNK1[0] = " ";
  82. PRF$BLNK2[0] = " ";
  83. PRF$COMMNT[0] = " ";
  84. REWIND(SIOFET); # REWIND NLF #
  85. RECALL(SIOFET);
  86. WRITEW(SIOFET,DIRB,15);
  87. WRITER(SIOFET); # WRITE HEADER TO FILE AND PUT EOR MARKER #
  88. END TERM
cdc/nos2.source/nam5871/lfgnlfh.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator