User Tools

Site Tools


cdc:nos2.source:nam5871:netsetp

NETSETP

Table Of Contents

  • [00004] PROC NETSETP1)
  • [00053] PROC NP$ERR
  • [00055] PROC NP$SN

Source Code

NETSETP.txt
  1. *DECK NETSETP
  2. USETEXT NP$MODE
  3. USETEXT NP$STAT
  4. PROC NETSETP((OPTION));
  5. *IF DEF,IMS
  6. #
  7. *1DC NETSETP
  8. *
  9. * 1. PROC NAME AUTHOR DATE
  10. * NETSETP S.KRULEVITCH 78/11/10
  11. *
  12. * 2. FUNCTIONAL DESCRIPTION
  13. * PARALLEL MODE MAY BE SELECTED AT RUN-TIME BY CALLING THIS
  14. * ROUTINE. THE APPLICATION WILL GET CONTROL BACK AS SOON AS
  15. * POSSIBLE AFTER NIP HAS BEEN CALLED,IF PARALLEL MODE IS ON.
  16. *
  17. * 3. METHOD USED
  18. * PARALLEL FLAG SET TRUE IF OPTION IS ZERO, ELSE FALSE.
  19. *
  20. * 4. ENTRY CONDITIONS
  21. * OPTION - ZERO FOR PARALLEL,OTHERWISE NON-ZERO.
  22. *
  23. * 5. EXIT CONDITIONS
  24. * PARALLEL - TRUE IF IN PARALLEL MODE, OTHERWISE FALSE.
  25. *
  26. * 6. COMDECKS CALLED
  27. * NP$CRT NP$MODE NP$STAT
  28. *
  29. * 7. ROUTINES CALLED
  30. * NP$ERR - ERROR PROCESSOR
  31. * NP$SN - INCREMENTS STATISTICS COUNTER
  32. *
  33. * 8. DAYFILE MESSAGES
  34. * NETWORK APPLICATION ABORTED, RC = 41.
  35. * NETSETP: PREVIOUS REQUEST INCOMPLETE.
  36. *
  37. *
  38.  #
  39. *ENDIF
  40. BEGIN
  41.  
  42. *CALL NP$CRT
  43.  
  44. # #
  45. # FORMAL PARAMETERS: #
  46. # #
  47. ITEM
  48. OPTION I; #ZERO VALUE IMPLIES PARALLEL #
  49. # #
  50. # EXTERNAL ROUTINES: #
  51. # #
  52. XREF BEGIN
  53. PROC NP$ERR; #ERROR PROCESSOR #
  54. *IF DEF,STAT
  55. PROC NP$SN; #INCREMENTS STATISTICS COUNTER#
  56. *ENDIF
  57. END #XREFS#
  58. #**********************************************************************#
  59. # #
  60. # NETSETP EXECUTION BEGINS HERE: #
  61. # #
  62. *IF DEF,STAT
  63. # #
  64. # UPDATE STATISTICS IF STATISTICS GATHERING IS TURNED ON. #
  65. # #
  66. NP$SN(TYPE"SETP"); #INCREMENT COUNTER #
  67. *ENDIF
  68. IF DEFER$PRO
  69. THEN
  70. NP$ERR("41"); # PREVIOUS REQUEST INCOMPLETE. #
  71. IF OPTION EQ 0
  72. THEN
  73. PARALLEL = TRUE;
  74. ELSE
  75. PARALLEL = FALSE;
  76. RETURN;
  77. END #NETSETP#
  78. TERM
1)
OPTION
cdc/nos2.source/nam5871/netsetp.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator