User Tools

Site Tools


cdc:nos2.source:nam5871:nvfugsn

NVFUGSN

Table Of Contents

  • [00004] PROC NVFUGSN (AORD)
  • [00005] NVFUGSN - GENERATE SECONDARY APPLICATION NAME.
  • [00008] GENERATE SECONDARY APPLICATION NAME.
  • [00030] FUNC XCDD C(10)
  • [00045] TEMPA - TEMPORARY ARRAY.

Source Code

NVFUGSN.txt
  1. *DECK NVFUGSN
  2. USETEXT TEXTNVF
  3. USETEXT TEXTSS
  4. PROC NVFUGSN (AORD);
  5. # TITLE - NVFUGSN - GENERATE SECONDARY APPLICATION NAME. #
  6. BEGIN # NVFUGSN #
  7. #
  8. ** NVFUGSN - GENERATE SECONDARY APPLICATION NAME.
  9. *
  10. * C. BRION 83/04/17, 83/06/24.
  11. *
  12. * THIS PROCEDURE CONVERTS A PRIMARY APPLICATION NAME AND GENERATES
  13. * THE SECONDARY APPLICATION NAME.
  14. *
  15. * PROC NVFUGSN (AORD)
  16. *
  17. * ENTRY:
  18. * AORD - THE AST ORDINAL OF THE SECONDARY AST ENTRY.
  19. *
  20. * EXIT:
  21. *
  22. * THE SECONDARY AST ENTRY WILL CONTAIN THE CONVERTED PRIMARY APPLICATION
  23. * NAME.
  24. #
  25. #
  26. **** PROC NVFUGSN XREF LIST
  27. #
  28. XREF
  29. BEGIN
  30. FUNC XCDD C(10); # CONV INT TO DISPLAY CODE #
  31. END
  32.  
  33. #
  34. ****
  35. #
  36.  
  37. DEF MAXCCNT$ # 5 #; # MAX NUM CHARS ALLOWED #
  38.  
  39. ITEM AORD I; # AST ORDINAL #
  40. ITEM CCNT I; # CHAR COUNTERS #
  41. ITEM INTAN C(10); # DISPLAY NAME CELL #
  42. ITEM STOPX B; # LOOP CONTROL VARIABLE #
  43.  
  44. #
  45. ** TEMPA - TEMPORARY ARRAY.
  46. #
  47. ARRAY TEMPA [00:00] S(1);
  48. BEGIN
  49. ITEM TEM$WORD U(00,00,60); # WORD REFERENCE #
  50. ITEM TEM$NAME C(00,00,07); # APPLICATION NAME #
  51. END
  52.  
  53. CONTROL EJECT;
  54.  
  55. #
  56. * EXTRACT THE SECONDARY APPLICATION NAME FROM THE AST ENTRY.
  57. * CHECK FOR FIRST BLANK CHARACTER SIGNALLING END OF NAME.
  58. * IF ALL SEVEN CHARACTERS USED, USE ONLY FIRST FIVE CHARACTERS.
  59. * CONVERT THE APPLICATION NUMBER TO DISPLAY CODED DECIMAL EQUIVALENT.
  60. * APPEND THE CONVERTED APPLICATION NUMBER TO END OF APPLICATION
  61. * NAME TO GET SECONDARY NAME. STORE INTO AST ENTRY.
  62. #
  63.  
  64. TEM$WORD[0] = 0;
  65. TEM$NAME[0] = AST$SANAM[AORD];
  66. INTAN = "0000000000";
  67. STOPX = FALSE;
  68. FOR CCNT = 0 STEP 1 WHILE
  69. ((CCNT LS 7) AND
  70. NOT STOPX)
  71. DO
  72. BEGIN
  73. IF C<CCNT,1>TEM$NAME[0] EQ " "
  74. THEN
  75. STOPX = TRUE;
  76. END
  77. CCNT = CCNT - 1;
  78. IF NOT STOPX
  79. THEN
  80. CCNT = MAXCCNT$;
  81. INTAN = XCDD(AST$AN[AORD]);
  82. IF C<8,1>INTAN EQ " "
  83. THEN
  84. C<8,1>INTAN = "0";
  85. B<(CCNT * 6),12>TEM$NAME[0] = B<48,12>INTAN ;
  86. AST$PANAM[AORD] = TEM$NAME[0];
  87. END
  88. TERM
cdc/nos2.source/nam5871/nvfugsn.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator