User Tools

Site Tools


cdc:nos2.source:nam5871:nvfictn

NVFICTN

Table Of Contents

  • [00003] PROC NVFICTN
  • [00004] NVFICTN - CONNECT TO NETWORK.
  • [00008] CONNECT TO NETWORK.
  • [00033] PROC MESSAGE
  • [00034] PROC NETFUNC
  • [00035] PROC NETON
  • [00036] PROC NETSETP
  • [00037] PROC RECALL

Source Code

NVFICTN.txt
  1. *DECK NVFICTN
  2. USETEXT TEXTSS
  3. PROC NVFICTN;
  4. # TITLE NVFICTN - CONNECT TO NETWORK. #
  5.  
  6. BEGIN # NVFICTN #
  7. #
  8. ** NVFICTN - CONNECT TO NETWORK.
  9. *
  10. * D. G. DEPEW. 82/04/23.
  11. *
  12. * THIS PROCEDURE NETS ON AND SETS PARALLEL MODE.
  13. *
  14. * PROC NVFICTN
  15. *
  16. * ENTRY NONE.
  17. *
  18. * EXIT 1. IF NETON SUCCEEDED, AN APPROPRIATE DAYFILE MESSAGE HAS
  19. * BEEN ISSUED AND PARALLEL MODE HAS BEEN SET. ALSO, A
  20. * CALL TO NETFUNC HAS BEEN MADE WITH CODE 1, INDICATING
  21. * THAT NVF IS TO BE SWAPPED OUT WHEN IT ISSUES A NETWAIT
  22. * IF THERE IS NO DELIVERABLE DATA ON A NETGETL OR NETGTFL
  23. * CALL.
  24. * 2. IF NETON FAILED, THERE IS NO RETURN. NVF TERMINATES
  25. * NORMALLY AFTER ISSUEING AN APPROPRIATE DAYFILE MESSAGE.
  26. #
  27.  
  28. #
  29. **** PROC NVFICTN - XREF LIST.
  30. #
  31. XREF
  32. BEGIN
  33. PROC MESSAGE; # ISSUE DAYFILE MESSAGE (MACREL) #
  34. PROC NETFUNC; # ISSUE AIP COMMAND #
  35. PROC NETON; # CONNECT TO NETWORK #
  36. PROC NETSETP; # PARALLEL MODE CONTROL #
  37. PROC RECALL; # PLACE JOB IN RECALL (MACREL) #
  38. END
  39. #
  40. ****
  41. #
  42.  
  43.  
  44. DEF SWAPOUT #1#; # SWAP OUT NVF AFTER IT ISSUES NETWAIT #
  45. DEF OPTION$ #0#; # DAYFILE MESSAGE OPTION #
  46.  
  47. STATUS NETON$ # NETON STATUS LIST #
  48. SUCCESS, # NETON SUCCESSFUL #
  49. UNAVAIL, # NAM UNAVAILABLE #
  50. DUPLICATE, # DUPLICATE NETON ATTEMPT #
  51. DISABLED; # APPLICATION DISABLED #
  52.  
  53.  
  54. $BEGIN
  55. ITEM I; # LOOP INDUCTION VARIABLE #
  56. $END
  57. ITEM NSTAT S:NETON$; # NETON STATUS #
  58.  
  59.  
  60. ARRAY TRYMSG [00:00] S(3);
  61. BEGIN
  62. ITEM TR$TEXT C(00,00,21) = ["NVF ATTEMPTING NETON."];
  63. ITEM TR$ZERO U(02,06,54) = [0];
  64. END
  65.  
  66. ARRAY BADMSG [00:00] S(3);
  67. BEGIN
  68. ITEM BD$TEXT C(00,00,25) = ["NVF NETON ATTEMPT FAILED."];
  69. ITEM BD$ZERO U(02,30,30) = [0];
  70. END
  71.  
  72. ARRAY OKMSG [00:00] S(3);
  73. BEGIN
  74. ITEM OK$TEXT C(00,00,21) = ["NVF NETON SUCCESSFUL."];
  75. ITEM OK$ZERO U(02,06,54) = [0];
  76. END
  77.  
  78.  
  79.  
  80.  
  81. MESSAGE (TRYMSG, OPTION$);
  82. FOR NSTAT = S"UNAVAIL"
  83. WHILE NSTAT EQ S"UNAVAIL"
  84. DO # LOOP UNTIL NAM IS AVAILABLE #
  85. BEGIN
  86. RECALL (0);
  87. NETON ("NVF", NSUP, NSTAT, 2, 4095); # CONNECT TO NETWORK #
  88. END
  89.  
  90.  
  91. IF NSTAT NQ S"SUCCESS"
  92. THEN # NVF NETON FAILURE SHOULD NEVER HAPPEN #
  93. BEGIN
  94. MESSAGE (BADMSG, OPTION$);
  95. STOP;
  96. END
  97. $BEGIN
  98. FOR I=0 STEP 1 UNTIL NSVT$
  99. DO # CLEAR STATISTICS VALUES #
  100. BEGIN
  101. SVT$VAL[I] = 0;
  102. END
  103. $END
  104. NET$ONF = TRUE; # SET NET ON FLAG #
  105. MESSAGE (OKMSG, OPTION$);
  106.  
  107. NETSETP(0); # BEGIN PARALLEL MODE #
  108. NETFUNC(SWAPOUT,0); # NVF WILL BE SWAPPED OUT WHEN IT ISSUES #
  109. # NETWAIT IF NO DATA IS DELIVERABLE ON A #
  110. # NETGETL OR NETGTFL CALL #
  111.  
  112. END # NVFICTN #
  113.  
  114. TERM
cdc/nos2.source/nam5871/nvfictn.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator