107 lines
2.4 KiB
Mathematica
107 lines
2.4 KiB
Mathematica
DINZMSM ;SFISC/AC-SETS ^%ZOSF FOR MSM-UNIX ;2:23 PM 1 Oct 1998
|
|
;;22.0;VA FileMan;;Mar 30, 1999
|
|
;Per VHA Directive 10-93-142, this routine should not be modified.
|
|
K ^%ZOSF("MASTER"),^%ZOSF("SIGNOFF")
|
|
F I=1:2 S Z=$P($T(Z+I),";;",2) Q:Z="" S X=$P($T(Z+1+I),";;",2,99) S ^%ZOSF(Z)=X
|
|
S $P(^%ZOSF("OS"),"^")=$S($ZV["MSM":$P($ZV,","),1:"MSM")_"^8"
|
|
K I,X,Z
|
|
Q
|
|
;
|
|
Z ;;
|
|
;;ACTJ
|
|
;;S Y=$$ACTJ^%ZOSV()
|
|
;;AVJ
|
|
;;S Y=$$AVJ^%ZOSV()
|
|
;;BRK
|
|
;;B 1
|
|
;;CPU
|
|
;;Q
|
|
;;DEL
|
|
;;X "ZR ZS @X" K ^UTILITY("%RD",X)
|
|
;;EOFF
|
|
;;U $I:(::::1)
|
|
;;EON
|
|
;;U $I:(:::::1)
|
|
;;EOT
|
|
;;S Y=$ZA\1024#2
|
|
;;ERRTN
|
|
;;^%ZTER
|
|
;;ETRP
|
|
;;Q
|
|
;;GD
|
|
;;D ^%GD
|
|
;;LABOFF
|
|
;;U IO:(::::1)
|
|
;;JOBPARAM
|
|
;;G JOBPAR^%ZOSV
|
|
;;LOAD
|
|
;;S %N=0 X "ZL @X F XCNP=XCNP+1:1 S %N=%N+1,%=$T(+%N) Q:$L(%)=0 S @(DIF_XCNP_"",0)"")=%"
|
|
;;LPC;;Parity Check - ASCII sum
|
|
;;S Y=$ZCRC(X)
|
|
;;MAXSIZ
|
|
;;S %K=X D INT^%PARTSIZ
|
|
;;MAGTAPE
|
|
;;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")="*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FF
|
|
;;U $I:(::::::::$C(13,27))
|
|
;;TRMON
|
|
;;U $I:(::::::::$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))
|
|
;;TRMRD
|
|
;;S Y=$ZB
|
|
;;TYPE-AHEAD
|
|
;;U $I:(::::67108864:33554432)
|
|
;;UCI
|
|
;;S Y=$ZU(0)
|
|
;;UCICHECK
|
|
;;S Y=$$UCICHECK^%ZOSV(X)
|
|
;;UPPERCASE
|
|
;;S Y=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
|
;;XY
|
|
;;U $I:(::::::DY*256+DX)
|
|
;;ZD
|
|
;;S Y=$ZD(X)
|