User Tools

Site Tools


cdc:nos2.source:nam5871:np_xloc

NP$XLOC

Table Of Contents

  • [00005] PROC NP$XLOC(ACN)

Source Code

NP$XLOC.txt
  1. *DECK NP$XLOC
  2. *IF DEF,XFR
  3. USETEXT AIPDEF
  4. USETEXT NX$ACBX
  5. PROC NP$XLOC(ACN);
  6. #
  7. ***
  8. * PROC NAME: AUTHOR DATE
  9. * NP$XLOC L.T.NGUYEN 83/03/29
  10. *
  11. * 2.FUNCTIONAL DESCRIPTION:
  12. * LOCATE FTT ENTRY BY USING THE ACN .
  13. *
  14. * 3.METHOD:
  15. * LOOP THROUGHT THE FTT UNTIL FIND A MATCHING ACN.
  16. *
  17. * 4.INPUT PARAMS:
  18. * ACN - CONNECTION NUMBER OF XFR CONNECTION.
  19. *
  20. * 5.EXIT PARAMS:
  21. * FTTINDEX - INDEX OF FTT ENTRY THAT MATCH THE ACN.
  22. *
  23. * 6.PROCS CALLED:
  24. * NONE.
  25. *
  26. * 7.NOTES :
  27. * THIS ROUTINE ASSUMING THAT THERE ALWAYS IS A MATCHING
  28. * ACN IN THE FTT. IF NOT ERROR HAS BEEN OCCURED, ABORT.
  29. *
  30. *
  31.  #
  32. BEGIN # NX$LOC #
  33. XREF PROC NP$ERR ;
  34. ITEM ACN I ; # CONNECTION NUMBER #
  35. ITEM I ; # INDUCTIVE VAR #
  36. ITEM FOUND B ; # FOUND FLAG #
  37.  
  38. FOUND = FALSE; # SET FLAG TO FALSE #
  39. FOR I = 0 STEP 1 WHILE I LS MAXFILEXFR
  40. AND NOT FOUND
  41. DO
  42. BEGIN
  43. IF FTTACN[I] EQ ACN
  44. THEN
  45. BEGIN
  46. FOUND = TRUE ;
  47. FTTINDEX = I ;
  48. END
  49. END
  50.  
  51. IF NOT FOUND
  52. THEN
  53. NP$ERR("49") ; # ABORT THE C.P. ERROR OCCURED #
  54.  
  55. RETURN ;
  56. END
  57. TERM
  58. *ENDIF
cdc/nos2.source/nam5871/np_xloc.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator