User Tools

Site Tools


cdc:nos2.source:nam5871:clossio

CLOSSIO

Table Of Contents

  • [00002] PROC CLOSSIO ( (FET),(OPTION) )
  • [00051] PROC CLOSE
  • [00052] PROC RECALL

Source Code

CLOSSIO.txt
  1. *DECK CLOSSIO
  2. PROC CLOSSIO ( (FET),(OPTION) );
  3. BEGIN # CLOSSIO #
  4. *IF DEF,IMS
  5. #
  6. **
  7. *
  8. * 1. PROC NAME AUTHOR DATE
  9. * CLOSSIO M. D. PICKARD 77/01/10
  10. *
  11. * 2. FUNCTIONAL DESCRIPTION
  12. * CLOSSIO WILL CLOSE A SUPIO RANDOM FILE.
  13. *
  14. * 3. METHOD USED
  15. * IF THE FET IS RANDOM AND THE INDEX IS A SUPIO INDEX, CLOSE
  16. * IS CALLED TO WRITE THE INDEX AS THE RECORD BEFORE THE EOI.
  17. *
  18. * 4. ENTRY PARAMETERS
  19. * FET ADDRESS OF THE FET
  20. * OPTION CLOSE OPTION
  21. * 0 - WITH REWIND
  22. * "NR" - NO REWIND
  23. * "REWIND" WITH REWIND
  24. * "UNLOAD" WITH REWIND AND UNLOAD
  25. *
  26. * 5. EXIT PARAMETERS
  27. * NONE.
  28. *
  29. * 6. COMDECKS CALLED
  30. * SIODEFS SUPIO SYMPL DEFS
  31. * SIOBASE SUPIO BASED ARRAY DEFINITIONS
  32. *
  33. * 7. ROUTINES CALLED
  34. * CLOSE MACREL CLOSE SYMPL INTERFACE
  35. * RECALL MACREL CPU RECALL SYMPL INTERFACE
  36. *
  37. * 8. DAYFILE MESSAGES
  38. * NONE.
  39. *
  40.  #
  41. *ENDIF
  42. CONTROL NOLIST; # STOPS LIST OF SIODEFS AND SIOBASE #
  43. *CALL SIODEFS
  44. *CALL SIOBASE
  45. CONTROL LIST;
  46. ITEM
  47. FET U, # FET ADDRESS #
  48. OPTION C(10); # CLOSE OPTION #
  49. XREF
  50. BEGIN
  51. PROC CLOSE;
  52. PROC RECALL;
  53. END
  54. P<SIOFET> = FET; # FORMAT FET #
  55. IF FETRAN[0]
  56. THEN # FILE IS RANDOM #
  57. BEGIN
  58. P<SIOINDX> = FETINDX[0];
  59. IF SIONAME[0] EQ "SUPIOINDEX"
  60. THEN # FILE HAS SUPIO INDEX #
  61. BEGIN
  62. CINDX[0] = 0; # SET CURRENT POISITON #
  63. IF ( ( LINDX[0] + 1 ) * 2 ) GQ MINSIOI
  64. THEN # USE CALCULATED INDEX LENGTH #
  65. FETINDL[0] = ( LINDX[0] + 1 ) * 2; # REAL LENGTH OF INDEX #
  66. ELSE # USE MINIMUM LENGTH #
  67. FETINDL[0] = MINSIOI; # MINIMUM SIO INDEX LENGTH #
  68. CLOSE(SIOFET,OPTION); # CLOSE THE FILE #
  69. RECALL(SIOFET); # WAIT TIL COMPLETE BIT SET #
  70. END
  71. END
  72. RETURN;
  73. END
  74. TERM # CLOSSIO #
cdc/nos2.source/nam5871/clossio.txt ยท Last modified: 2023/08/05 17:21 by Site Administrator