User Tools

Site Tools


cdc:nos2.source:nam5871:nvfturl

NVFTURL

Table Of Contents

  • [00005] PROC NVFTURL1)
  • [00006] NVFTURL - UPDATE RML TABLE
  • [00010] UPDATE RML TABLE.
  • [00040] PROC MESSAGE
  • [00041] PROC SSTRTS

Source Code

NVFTURL.txt
  1. *DECK NVFTURL
  2. USETEXT TEXTNVF
  3. USETEXT TXTAPSS
  4.  
  5. PROC NVFTURL((PT));
  6. # TITLE NVFTURL - UPDATE RML TABLE #
  7.  
  8. BEGIN # NVFTURL #
  9. #
  10. ** NVFTURL - UPDATE RML TABLE.
  11. *
  12. * G. A. HUGHES 86/01/30
  13. *
  14. * THIS PROCEDURE'S MAIN FUNCTION IS TO DELETE A USER'S ENTRY FROM
  15. * THE *RML* TABLE USED TO RESTRICT MULTIPLE INTERACTIVE ACCESS.
  16. * IT IS CALLED INTO EXECUTION BY THE FOLLOWING PROCEDURES:
  17. * *NVFTCRN* *NVFTETC*
  18. *
  19. * PROC NVFTURL
  20. *
  21. * ENTRY:
  22. * PT = POINTER TO PTAC ENTRY.
  23. *
  24. * EXIT:
  25. * PT = INDEX TO PTAC ENTRY.
  26. * RML TABLE UPDATED.
  27. *
  28. * METHOD:
  29. * IF THE DEVICE IS INTERACTIVE, SEARCH FOR THE MATCHING ENTRY IN
  30. * THE *RML* TABLE. IF FOUND DELETE IT FROM THE TABLE, IF NOT
  31. * ISSUE AN INFORMATIVE DAYFILE MESSAGE.
  32. #
  33.  
  34. #
  35. **** PROC NVFTURL - XREF LIST.
  36. #
  37.  
  38. XREF
  39. BEGIN
  40. PROC MESSAGE; # SEND MESSAGE TO SYSTEM AND USER DAYFILE #
  41. PROC SSTRTS; # REMOVE TABLE SPACE #
  42. END
  43.  
  44. #
  45. ****
  46. #
  47. ITEM FIND B; # RML ENTRY INDICATOR #
  48. ITEM I I; # LOOP VARIABLE #
  49. ITEM NENTRY I; # NUMBER OF ENTRIES IN TABLE #
  50. ITEM PT I; # SUBSCRIPT FOR ARRAY PTAC #
  51.  
  52. #
  53. * FOLLOWING ARRAY CONTAINS MESSAGE ISSUED TO THE DAYFILE UPON NOT
  54. * FINDING AN EXPECTED RML ENTRY.
  55. #
  56. ARRAY DAYMSG[00:00] S(4);
  57. BEGIN
  58. ITEM DAY$MSG1 C(00,00,22) = ["NVFTURL - CANNOT FIND "];
  59. ITEM DAY$MSG2 C(02,12,10) = ["RML ENTRY."];
  60. END
  61.  
  62. IF (PTA$DT[PT] EQ DT$CONS) OR (PTA$DT[PT] EQ DT$USER)
  63. OR (PTA$DT[PT] EQ DT$CLP )
  64. THEN # INTERACTIVE DEVICE #
  65. BEGIN
  66. FIND = FALSE;
  67. FOR I = 0 STEP 1 WHILE (NOT FIND AND I LS RMLLNGTH)
  68. DO
  69. BEGIN
  70. IF (RML$UIDX[I] EQ PTA$UIDX[PT]) AND
  71. (RML$FNAM[I] EQ PTA$FNAM[PT])
  72. THEN # RML ENTRY FOUND #
  73. BEGIN
  74. SSTRTS(P<RML>,I,RMLSIZ$); # DELETE RML ENTRY #
  75. FIND = TRUE; # EXIT LOOP #
  76. END
  77. END
  78. END
  79. IF NOT FIND
  80. THEN
  81. BEGIN
  82. MESSAGE(DAYMSG,0); # MSG TO SYSTEM AND USR DAYFILE #
  83. END
  84.  
  85. END # END NVFTURL #
  86.  
  87. TERM
1)
PT
cdc/nos2.source/nam5871/nvfturl.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator