User Tools

Site Tools


cdc:nos2.source:nam5871:inipd

Table of Contents

INIPD

Table Of Contents

  • [00006] PRGM INIPD
  • [00049] PROC FSTATUS
  • [00050] PROC ABORT
  • [00051] PROC OPITRCE
  • [00052] FUNC NXZFN C(10)
  • [00053] PROC XTRACE

Source Code

INIPD.txt
  1. *DECK INIPD
  2. USETEXT NIPDEF
  3. USETEXT BPIPBUF
  4. USETEXT DBGBUF
  5. USETEXT MSGIDX
  6. PRGM INIPD;
  7. STARTIMS;
  8. #
  9. *1DC INIPD
  10. *
  11. * 1. PROC NAME AUTHOR DATE
  12. * INIPD C. BITTNER 83/04/01
  13. *
  14. * 2. FUNCTIONAL DESCRIPTION
  15. * CHECK IF NRF1/NRF2 ARE LOCAL FILES.
  16. *
  17. * 3. METHOD USED
  18. * ZERO FILL FILE NAME. INITIALIZE THE FET.
  19. * CHECK IF THE FILE IS LOCAL BY CALLING FSTATUS.
  20. * CALL OPITRCE TO INITIALIZE NIP DEBUG LOG FILE.
  21. *
  22. * 4. ENTRY PARAMETERS
  23. * NONE
  24. *
  25. * 5. EXIT PARAMETERS
  26. * NONE
  27. *
  28. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  29. * NIPDEF BPIPBUF DBGBUF MSGIDX
  30. *
  31. * 7. ROUTINES CALLED
  32. * FSTATUS - CHECK IF FILE IS LOCAL
  33. * ABORT - ABORT NIP
  34. * NXZFN - ZERO FILL FILE NAME
  35. * OPITRCE - INITIALIZE NIP DEBUG LOG FILE.
  36. * XTRACE - TRACE PROCEDURE CALL
  37. *
  38. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  39. * "LFN NOT FOUND"
  40. *
  41.  #
  42. STOPIMS;
  43.  
  44. #
  45.   EXTERNAL VARIABLES
  46. #
  47. XREF
  48. BEGIN
  49. PROC FSTATUS; # CHECK IF FILE IS LOCAL #
  50. PROC ABORT; # ABORT NIP #
  51. PROC OPITRCE; # INITIALIZE NIP DEBUG LOG FILE #
  52. FUNC NXZFN C(10); # ZERO FILL NAME #
  53. PROC XTRACE; # TRACE PROCEDURE CALL #
  54. LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  55. END
  56.  
  57. #
  58.   LOCAL VARIABLES
  59. #
  60.  
  61. ITEM I; # LOOP VARIABLE #
  62. ITEM J; # LOOP VARIABLE #
  63. ITEM DTIME; # TIME WORD #
  64. BASED ARRAY FETXX S(1);
  65. BEGIN
  66. ITEM FETWORD U(0,0,60);
  67. END
  68.  
  69.  
  70. BEGIN
  71.  
  72. CONTROL IFEQ DEBUG,1;
  73. XTRACE("INIPD");
  74. CONTROL FI;
  75.  
  76.  
  77. #
  78.   CHECK IF NRF1,NRF2 FILES ARE LOCAL
  79. #
  80.  
  81. CONTROL IFEQ ZZDN,1;
  82. ZNRF1 = NXZFN(NRF1); # ZERO FILL FILE NAME #
  83. ZNRF2 = NXZFN(NRF2); # ZERO FILL FILE NAME #
  84.  
  85. # INITIALIZE FET #
  86. P<FETXX> = LOC(FETLFN[0]);
  87. FOR J = 0 STEP 1 UNTIL FETSZ-1 DO
  88. BEGIN
  89. FETWORD[0] = 0;
  90. END
  91.  
  92.  
  93. FETLEN[0] = FETSZ - 5; # FET LENGTH #
  94. FETCMPT[0] = TRUE;
  95. FOR I=1 STEP 1 UNTIL 2
  96. DO
  97. BEGIN
  98. IF I EQ 1
  99. THEN
  100. FETLFN[0] = ZNRF1;
  101. ELSE
  102. FETLFN[0] = ZNRF2;
  103. FSTATUS(BFET); # CHECK IF FILE IS LOCAL #
  104. IF FETSTATUS[0] EQ 0
  105. THEN # FILE NOT FOUND #
  106. BEGIN
  107. D28M2[0] = C<0,4>FETLFN[0];
  108. ABORT(DFMSG28,0); # ABORT NIP #
  109. END
  110. END
  111.  
  112. #
  113.   INITIALIZE TRACE FILE
  114. #
  115. OPITRCE(ZNRF1,0);
  116.  
  117. CONTROL FI;
  118.  
  119.  
  120. GOTO RJMAIN;
  121. END
  122. TERM
cdc/nos2.source/nam5871/inipd.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator