User Tools

Site Tools


cdc:nos2.source:nam5871:nvfcfce

NVFCFCE

Table Of Contents

  • [00004] PROC NVFCFCE( ACNN, AE, NEWACN )
  • [00005] NVFCFCF - FIND CONNECTION ENTRY.
  • [00009] FIND CONNECTION ENTRY.

Source Code

NVFCFCE.txt
  1. *DECK NVFCFCE
  2. USETEXT TEXTSS
  3. USETEXT TEXTNVF
  4. PROC NVFCFCE( ACNN, AE, NEWACN );
  5. # TITLE NVFCFCF - FIND CONNECTION ENTRY. #
  6.  
  7. BEGIN # NVFCFCE #
  8. #
  9. ** NVFCFCE - FIND CONNECTION ENTRY.
  10. *
  11. * S. H. FISCHER. 81/12/04.
  12. *
  13. * THIS PROCEDURE SEARCHES THE ACN LIST FOR THE SPECIFIED APPLICATION
  14. * CONNECTION NUMBER.
  15. *
  16. * PROC( AACN, AE, NEWACN )
  17. *
  18. * ENTRY:
  19. * ACNN = APPLICATION CONNECTION NUMBER TO BE LOCATED.
  20. *
  21. * EXIT:
  22. * AE = ORDINAL OF LOCATED ENTRY OR NEXT AVAILABLE ORDINAL.
  23. * NEWACN = TRUE IF ENTRY NOT FOUND, FALSE IF NOT FOUND.
  24. *
  25. #
  26.  
  27.  
  28.  
  29.  
  30. ITEM I I; # LOOP VARIABLE #
  31. ITEM NEWACN B; # TRUE IF ACN NOT FOUND IN ACN LIST #
  32. ITEM ACNCNT I; # COUNT OF ENTRIES IN ACN LIST #
  33. ITEM AE I; # ORDINAL OF MATCHED (OR NEW) LIST ENTRY #
  34. ITEM ACNN I; # ACN TO SEARCH FOR #
  35. ITEM ACNS I; # LOCAL COPY OF ACN TO SEARCH FOR #
  36.  
  37.  
  38.  
  39.  
  40. ACNS = ACNN;
  41. NEWACN = TRUE;
  42. AE = 0;
  43.  
  44.  
  45. IF ACNLNGTH NQ 0
  46. THEN
  47. BEGIN
  48. ACNCNT = ACNLNGTH/ACNLSIZ$ - 1;
  49.  
  50. FOR I = 0 STEP 1 WHILE ( I LQ ACNCNT )
  51. AND ( ACN$ACN[I] NQ ACNS )
  52. DO
  53. BEGIN
  54. AE = I + 1;
  55. END
  56.  
  57. IF AE LQ ACNCNT
  58. THEN
  59. BEGIN
  60. NEWACN = FALSE;
  61. END
  62. END
  63.  
  64.  
  65. RETURN;
  66.  
  67. END # NVFCFCF #
  68. TERM
cdc/nos2.source/nam5871/nvfcfce.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator