[613] | 1 | ZOSFGTM ;ISF/staff - ZOSF Table for GT.M for VMS ;10/18/06 14:28
|
---|
| 2 | ;;8.0;KERNEL;**275,425**;Jul 10, 1995;Build 18
|
---|
| 3 | ; for GT.M for VMS, version 4.3
|
---|
| 4 | ;
|
---|
| 5 | S %Y=1,DTIME=$G(DTIME,600)
|
---|
| 6 | K ^%ZOSF("MASTER"),^%ZOSF("SIGNOFF")
|
---|
| 7 | I '$D(^%ZOSF("VOL")) S ^%ZOSF("VOL")="ROU"
|
---|
| 8 | K ZO F I="MGR","PROD","VOL" S:$D(^%ZOSF(I)) ZO(I)=^%ZOSF(I)
|
---|
| 9 | F I=1:2 S Z=$P($T(Z+I),";;",2) Q:Z="" D
|
---|
| 10 | . S X=$P($T(Z+1+I),";;",2,99)
|
---|
| 11 | . S ^%ZOSF(Z)=$S($D(ZO(Z)):ZO(Z),1:X)
|
---|
| 12 | . Q
|
---|
| 13 | ;
|
---|
| 14 | OS S ^%ZOSF("OS")="GT.M (VMS)^17"
|
---|
| 15 | MGR W !,"NAME OF MANAGER'S UCI,VOLUME SET: "_^%ZOSF("MGR")_"// " R X:DTIME I X]"" X ^("UCICHECK") G MGR:0[Y S ^%ZOSF("MGR")=X
|
---|
| 16 | PROD ;
|
---|
| 17 | W !,"The value of PRODUCTION will be used in the GETENV api."
|
---|
| 18 | W !,"PRODUCTION (SIGN-ON) UCI,VOLUME SET: "_^%ZOSF("PROD")_"// " R X:DTIME I X]"" X ^("UCICHECK") G PROD:0[Y S ^%ZOSF("PROD")=X
|
---|
| 19 | ;See that VOL and PROD agree.
|
---|
| 20 | I ^%ZOSF("PROD")'[^%ZOSF("VOL") S ^%ZOSF("VOL")=$P(^%ZOSF("PROD"),",",2)
|
---|
| 21 | VOL W !,"The VOLUME name must match the one in PRODUCTION."
|
---|
| 22 | W !,"NAME OF VOLUME SET: "_^%ZOSF("VOL")_"//" R X:DTIME
|
---|
| 23 | I X]"" D I X'?3U W "MUST BE 3 Upper case." G VOL
|
---|
| 24 | . I ^%ZOSF("PROD")'[X W !,"Must match PRODUCTION"
|
---|
| 25 | . S:X?3U ^%ZOSF("VOL")=X
|
---|
| 26 | W !,"^%ZOSF setup"
|
---|
| 27 | Q
|
---|
| 28 | ;
|
---|
| 29 | Z ;
|
---|
| 30 | ;;ACTJ
|
---|
| 31 | ;;S Y=$$ACTJ^%ZOSV()
|
---|
| 32 | ;;AVJ
|
---|
| 33 | ;;S Y=$$AVJ^%ZOSV()
|
---|
| 34 | ;;BRK
|
---|
| 35 | ;;U $I:(CENABLE)
|
---|
| 36 | ;;DEL
|
---|
| 37 | ;;D DEL^%ZOSV2(X) ;N %DIR S %DIR=$P($ZRO,",") ZSYSTEM "DEL "_%DIR_X_".m;*" ZSYSTEM "DEL "_%DIR_X_".obj;*"
|
---|
| 38 | ;;EOFF
|
---|
| 39 | ;;U $I:(NOECHO)
|
---|
| 40 | ;;EON
|
---|
| 41 | ;;U $I:(ECHO)
|
---|
| 42 | ;;EOT
|
---|
| 43 | ;;S Y=$ZA\1024#2 ; <=====
|
---|
| 44 | ;;ERRTN
|
---|
| 45 | ;;^%ZTER
|
---|
| 46 | ;;ETRP
|
---|
| 47 | ;;Q
|
---|
| 48 | ;;GD
|
---|
| 49 | ;;G ^%GD
|
---|
| 50 | ;;$INC
|
---|
| 51 | ;;0
|
---|
| 52 | ;;JOBPARAM
|
---|
| 53 | ;;G JOBPAR^%ZOSV
|
---|
| 54 | ;;LABOFF
|
---|
| 55 | ;;U IO:(NOECHO)
|
---|
| 56 | ;;LOAD
|
---|
| 57 | ;;D LOAD^%ZOSV2(X) ;N % S %N=0 F XCNP=XCNP+1:1 S %N=%N+1,%=$T(+%N^@X) Q:$L(%)=0 S @(DIF_XCNP_",0)")=%
|
---|
| 58 | ;;LPC;;Longitudinal Parity Check (Exclusive OR of the 8-bit bytes)
|
---|
| 59 | ;;S Y=$$LPC^%ZOSV(X)
|
---|
| 60 | ;;MAGTAPE
|
---|
| 61 | ;;S %MT("BS")="*1",%MT("FS")="*2",%MT("WTM")="*3",%MT("WB")="*4",%MT("REW")="*5",%MT("RB")="*6",%MT("REL")="*7",%MT("WHL")="*8",%MT("WEL")="*9" ; <=====
|
---|
| 62 | ;;MAXSIZ
|
---|
| 63 | ;;Q
|
---|
| 64 | ;;MGR
|
---|
| 65 | ;;VAH,ROU
|
---|
| 66 | ;;MTBOT
|
---|
| 67 | ;;S Y=$ZA\32#2 ; <=====
|
---|
| 68 | ;;MTERR
|
---|
| 69 | ;;S Y=$ZA\32768#2 ; <=====
|
---|
| 70 | ;;MTONLINE
|
---|
| 71 | ;;S Y=$ZA\64#2 ; <=====
|
---|
| 72 | ;;MTWPROT
|
---|
| 73 | ;;S Y=$ZA\4#2 ; <=====
|
---|
| 74 | ;;NBRK
|
---|
| 75 | ;;U $I:(NOCENABLE)
|
---|
| 76 | ;;NO-PASSALL
|
---|
| 77 | ;;U $I:(ESCAPE:TERMINATOR="":NOPASTHRU)
|
---|
| 78 | ;;NO-TYPE-AHEAD
|
---|
| 79 | ;;U $I:(NOTYPEAHEAD)
|
---|
| 80 | ;;PASSALL
|
---|
| 81 | ;;U $I:(NOESCAPE:NOTERMINATOR:PASTHRU)
|
---|
| 82 | ;;PRIINQ
|
---|
| 83 | ;;S Y=$$PRIINQ^%ZOSV()
|
---|
| 84 | ;;PRIORITY
|
---|
| 85 | ;;Q ;G PRIORITY^%ZOSV
|
---|
| 86 | ;;PROD
|
---|
| 87 | ;;VAH,ROU
|
---|
| 88 | ;;PROGMODE
|
---|
| 89 | ;;S Y=$$PROGMODE^%ZOSV()
|
---|
| 90 | ;;RD
|
---|
| 91 | ;;G ^%RD
|
---|
| 92 | ;;RESJOB
|
---|
| 93 | ;;Q:'$D(DUZ) Q:'$D(^XUSEC("XUMGR",+DUZ)) W !!,"From VMS use: mupip stop /id=pid",!
|
---|
| 94 | ;;RM
|
---|
| 95 | ;;U $I:WIDTH=$S(X<256:X,1:0)
|
---|
| 96 | ;;RSEL
|
---|
| 97 | ;;N %ZR,X K ^UTILITY($J) D ^%RSEL S X="" X "F S X=$O(%ZR(X)) Q:X="""" S ^UTILITY($J,X)="""""
|
---|
| 98 | ;;RSUM
|
---|
| 99 | ;;N %,%1,%2,%3 S Y=0 F %=1,3:1 S %1=$T(+%^@X),%3=$F(%1," ") Q:'%3 S %3=$S($E(%1,%3)'=";":$L(%1),$E(%1,%3+1)=";":$L(%1),1:%3-2) F %2=1:1:%3 S Y=$A(%1,%2)*%2+Y
|
---|
| 100 | ;;RSUM1
|
---|
| 101 | ;;N %,%1,%2,%3 S Y=0 F %=1,3:1 S %1=$T(+%^@X),%3=$F(%1," ") Q:'%3 S %3=$S($E(%1,%3)'=";":$L(%1),$E(%1,%3+1)=";":$L(%1),1:%3-2) F %2=1:1:%3 S Y=$A(%1,%2)*(%2+%)+Y
|
---|
| 102 | ;;SS
|
---|
| 103 | ;;D ^ZSY
|
---|
| 104 | ;;SAVE
|
---|
| 105 | ;;D SAVE^%ZOSV2(X) ;N %I,%F,SP S %I=$I,SP=" ",%F=$P($ZRO,",")_X_".m" O %F:(NEWVERSION) U %F X "F S XCN=$O(@(DIE_XCN_"")"")) Q:XCN'>0 S %=@(DIE_XCN_"",0)"") Q:$E(%,1)=""$"" I $E(%)'="";"" W $P(%,SP)_$C(9)_$P(%,SP,2,99999),!" C %F U %I
|
---|
| 106 | ;;SIZE
|
---|
| 107 | ;;N %,I S Y=0 F I=1:1 S %=$T(+I^@X) Q:%="" S Y=Y+$L(%)+2
|
---|
| 108 | ;;TEST
|
---|
| 109 | ;;I X]"",$L($$TEST^%ZOSV2(X))
|
---|
| 110 | ;;TMK
|
---|
| 111 | ;;S Y=$ZA\16384#2
|
---|
| 112 | ;;TRAP
|
---|
| 113 | ;;$ZT="G "_X
|
---|
| 114 | ;;TRMOFF
|
---|
| 115 | ;;U $I:(TERMINATOR="":NOPASTHRU:ESCAPE)
|
---|
| 116 | ;;TRMON
|
---|
| 117 | ;;U $I:(TERMINATOR=$C(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127):NOESCAPE:PASTHRU)
|
---|
| 118 | ;;TRMRD
|
---|
| 119 | ;;S Y=$A($ZB)
|
---|
| 120 | ;;TYPE-AHEAD
|
---|
| 121 | ;;U $I:(TYPEAHEAD)
|
---|
| 122 | ;;UCI
|
---|
| 123 | ;;S Y=^%ZOSF("PROD")
|
---|
| 124 | ;;UCICHECK
|
---|
| 125 | ;;S Y=1
|
---|
| 126 | ;;UPPERCASE
|
---|
| 127 | ;;S Y=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
---|
| 128 | ;;XY
|
---|
| 129 | ;;S $X=DX,$Y=DY
|
---|
| 130 | ;;VOL
|
---|
| 131 | ;;ROU
|
---|
| 132 | ;;ZD;;Input X, output Y.
|
---|
| 133 | ;;S Y=$ZDATE(X) ;$$HTE^XLFDT(X,2) I $L($P(Y,"/"))=1 S Y=0_Y
|
---|