User Tools

Site Tools


cdc:nos2.source:opl871:settasv

SETTASV

Table Of Contents

Source Code

SETTASV.txt
  1. *NOSEQ
  2. .PROC,SETTASV*I
  3. ,D=(*A,*N=GE)
  4. ,F=(*A,*N=I)
  5. ,V1=(*S6..6/AD)
  6. ,V2=(*S6..6/AD,*N=)
  7. ,T=(*F,*N=TAPE)
  8. ,VF=(*F,*N=PFVER)
  9. ,TFSI=(*N=#DATA)
  10. .
  11. .***************************************
  12. .* *
  13. .* *SETTASV* IS THE PROCEDURE CALLED *
  14. .* BY THE PROGRAM *GETTASV* AFTER IT *
  15. .* HAS SELECTED THE SYSTEM VSN(S) TO *
  16. .* BE USED FOR TAPE ALTERNATE STORAGE *
  17. .* FOR DESTAGED MASS STORAGE FILES. *
  18. .* *GETTASV* MUST PASS THE DENSITY(D) *
  19. .* FORMAT(F), ONE OR TWO SYSTEM VSNS *
  20. .* (V1,V2), AND THE LFN(S) FOR THE *
  21. .* DESTAGE TAPES(T,VF). *SETTASV* *
  22. .* MUST RESERVE THE SELECTED VSN(S) *
  23. .* AND REQUEST THE TAPES. THE VSN(S) *
  24. .* ARE RESERVED UNDER THE USERNAME IN *
  25. .* EFFECT AT THE TIME *SETTASV* IS *
  26. .* CALLED. IF THE SIZE OF FILES TO *
  27. .* BE DESTAGED EXCEEDS THE CAPACITY *
  28. .* OF A SINGLE VSN, ADDITIONAL VSNS *
  29. .* WILL BE ASSIGNED FROM THE SCRATCH *
  30. .* POOL AS REQUIRED. ADDITIONAL VSNS *
  31. .* ASSIGNED WILL NOT BE SYSTEM VSNS. *
  32. .* *
  33. .* NOTE- IT IS THE RESPONSIBILITY OF *
  34. .* THE JOB CALLING *GETTASV* TO ISSUE *
  35. .* THE APPROPRIATE *RESOURC* COMMAND *
  36. .* IF MULTIPLE TAPES AND/OR PACKS ARE *
  37. .* REQUIRED BY THE JOB (AS WHERE TWO *
  38. .* VSNS ARE REQUIRED FOR DESTAGING). *
  39. .* *
  40. .***************************************
  41. .SET,USERNAM=STR(USER).
  42. $TFSP,OP=I,I=TFSI.
  43. $UNLOAD,T,TFSI.
  44. $LABEL,T,#D=D,#F=F,PO=W,VSN=V1.
  45. .IF,$V2$.NE.$$,BACK1.
  46. $UNLOAD,VF.
  47. $LABEL,VF,#D=D,#F=F,PO=W,VSN=V2.
  48. .ENDIF,BACK1.
  49. $REVERT,NOLIST.
  50. .DATA,TFSI.
  51. USER=USERNAM
  52. FILEV=V1
  53. #D=D
  54. #F=F
  55. LB=KL
  56. M=NULL
  57. RESERVE
  58. .IF,$V2$.NE.$$,BACK2.
  59. FILEV=V2
  60. #D=D
  61. #F=F
  62. LB=KL
  63. M=NULL
  64. RESERVE
  65. .ENDIF,BACK2.
  66. DROP
  67. DROP
  68. .* END OF SETTASV PROCEDURE.
cdc/nos2.source/opl871/settasv.txt ยท Last modified: 2023/08/05 17:24 by Site Administrator