DINZMSM ;SFISC/AC-SETS ^%ZOSF FOR MSM-UNIX ;2:23 PM 1 Oct 1998
;;22.0;VA FileMan;;Mar 30, 1999;Build 1
;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")="*9"
;;MTBOT
;;S Y=$ZA#2
;;MTERR
;;S Y=($ZA\256#8)+($ZA\4096#8)
;;MTONLINE
;;S Y=$ZA\16#4=3
;;MTWPROT
;;S Y=$ZA\2048#2
;;NBRK
;;B 0
;;NO-PASSALL
;;U $I:(:::::8388608)
;;NO-TYPE-AHEAD
;;U $I:(::::100663296)
;;PASSALL
;;U $I:(::::8388608)
;;PRIINQ
;;S Y=$$PRIINQ^%ZOSV()
;;PRIORITY
;;G PRIORITY^%ZOSV
;;PROGMODE
;;S Y=$$PROGMODE^%ZOSV()
;;RD
;;D ^%RD
;;RESJOB
;;Q:'$D(DUZ) Q:'$D(^XUSEC("XUMGR",+DUZ)) N XQZ S XQZ="^KILLJOB[MGR]" D DO^%XUCI
;;RM
;;U:IOT["TRM" $I:X
;;RSEL
;;K ^UTILITY($J) G ^%RSEL
;;RSUM
;;ZL @X S Y=0 F %=1,3:1 S %1=$T(+%),%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
;;SAVE
;;S XCS="F XCM=1:1 S XCN=$O(@(DIE_XCN_"")"")) Q:+XCN'=XCN S %=^(XCN,0) Q:$E(%,1)=""$"" I $E(%,1)'="";"" ZI %" X "ZR X XCS ZS @X" S ^UTILITY("%RD",X)="" K XCS
;;SIZE
;;S Y=0 F I=1:1 S %=$T(+I) Q:%="" S Y=Y+$L(%)+2
;;SS
;;D ^%SS
;;TEST
;;I $D(^ (X))
;;TMK
;;S Y=$ZA\128#2
;;TRAP
;;$ZT=X
;;TRMOFF
;;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)
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDINZMSM 2536 printed Nov 22, 2024@18:02:17 Page 2
DINZMSM ;SFISC/AC-SETS ^%ZOSF FOR MSM-UNIX ;2:23 PM 1 Oct 1998
+1 ;;22.0;VA FileMan;;Mar 30, 1999;Build 1
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 KILL ^%ZOSF("MASTER"),^%ZOSF("SIGNOFF")
+4 FOR I=1:2
SET Z=$PIECE($TEXT(Z+I),";;",2)
if Z=""
QUIT
SET X=$PIECE($TEXT(Z+1+I),";;",2,99)
SET ^%ZOSF(Z)=X
+5 SET $PIECE(^%ZOSF("OS"),"^")=$SELECT($ZV["MSM":$PIECE($ZV,","),1:"MSM")_"^8"
+6 KILL I,X,Z
+7 QUIT
+8 ;
Z ;;
+1 ;;ACTJ
+2 ;;S Y=$$ACTJ^%ZOSV()
+3 ;;AVJ
+4 ;;S Y=$$AVJ^%ZOSV()
+5 ;;BRK
+6 ;;B 1
+7 ;;CPU
+8 ;;Q
+9 ;;DEL
+10 ;;X "ZR ZS @X" K ^UTILITY("%RD",X)
+11 ;;EOFF
+12 ;;U $I:(::::1)
+13 ;;EON
+14 ;;U $I:(:::::1)
+15 ;;EOT
+16 ;;S Y=$ZA\1024#2
+17 ;;ERRTN
+18 ;;^%ZTER
+19 ;;ETRP
+20 ;;Q
+21 ;;GD
+22 ;;D ^%GD
+23 ;;LABOFF
+24 ;;U IO:(::::1)
+25 ;;JOBPARAM
+26 ;;G JOBPAR^%ZOSV
+27 ;;LOAD
+28 ;;S %N=0 X "ZL @X F XCNP=XCNP+1:1 S %N=%N+1,%=$T(+%N) Q:$L(%)=0 S @(DIF_XCNP_"",0)"")=%"
+29 ;;LPC;;Parity Check - ASCII sum
+30 ;;S Y=$ZCRC(X)
+31 ;;MAXSIZ
+32 ;;S %K=X D INT^%PARTSIZ
+33 ;;MAGTAPE
+34 ;;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"
+35 ;;MTBOT
+36 ;;S Y=$ZA#2
+37 ;;MTERR
+38 ;;S Y=($ZA\256#8)+($ZA\4096#8)
+39 ;;MTONLINE
+40 ;;S Y=$ZA\16#4=3
+41 ;;MTWPROT
+42 ;;S Y=$ZA\2048#2
+43 ;;NBRK
+44 ;;B 0
+45 ;;NO-PASSALL
+46 ;;U $I:(:::::8388608)
+47 ;;NO-TYPE-AHEAD
+48 ;;U $I:(::::100663296)
+49 ;;PASSALL
+50 ;;U $I:(::::8388608)
+51 ;;PRIINQ
+52 ;;S Y=$$PRIINQ^%ZOSV()
+53 ;;PRIORITY
+54 ;;G PRIORITY^%ZOSV
+55 ;;PROGMODE
+56 ;;S Y=$$PROGMODE^%ZOSV()
+57 ;;RD
+58 ;;D ^%RD
+59 ;;RESJOB
+60 ;;Q:'$D(DUZ) Q:'$D(^XUSEC("XUMGR",+DUZ)) N XQZ S XQZ="^KILLJOB[MGR]" D DO^%XUCI
+61 ;;RM
+62 ;;U:IOT["TRM" $I:X
+63 ;;RSEL
+64 ;;K ^UTILITY($J) G ^%RSEL
+65 ;;RSUM
+66 ;;ZL @X S Y=0 F %=1,3:1 S %1=$T(+%),%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
+67 ;;SAVE
+68 ;;S XCS="F XCM=1:1 S XCN=$O(@(DIE_XCN_"")"")) Q:+XCN'=XCN S %=^(XCN,0) Q:$E(%,1)=""$"" I $E(%,1)'="";"" ZI %" X "ZR X XCS ZS @X" S ^UTILITY("%RD",X)="" K XCS
+69 ;;SIZE
+70 ;;S Y=0 F I=1:1 S %=$T(+I) Q:%="" S Y=Y+$L(%)+2
+71 ;;SS
+72 ;;D ^%SS
+73 ;;TEST
+74 ;;I $D(^ (X))
+75 ;;TMK
+76 ;;S Y=$ZA\128#2
+77 ;;TRAP
+78 ;;$ZT=X
+79 ;;TRMOFF
+80 ;;U $I:(::::::::$C(13,27))
+81 ;;TRMON
+82 ;;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))
+83 ;;TRMRD
+84 ;;S Y=$ZB
+85 ;;TYPE-AHEAD
+86 ;;U $I:(::::67108864:33554432)
+87 ;;UCI
+88 ;;S Y=$ZU(0)
+89 ;;UCICHECK
+90 ;;S Y=$$UCICHECK^%ZOSV(X)
+91 ;;UPPERCASE
+92 ;;S Y=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
+93 ;;XY
+94 ;;U $I:(::::::DY*256+DX)
+95 ;;ZD
+96 ;;S Y=$ZD(X)