source: FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/ZOSFONT.m@ 1470

Last change on this file since 1470 was 636, checked in by George Lilly, 15 years ago

WorldVistAEHR overlayed on FOIAVistA

File size: 3.1 KB
Line 
1ZOSFONT ;SFISC/AC - SETS UP ^%ZOSF FOR Open M for NT ;09/29/98 08:26
2 ;;8.0;KERNEL;**34,104**;JUL 03, 1995
3 S %Y=1 K ^%ZOSF("MASTER"),^%ZOSF("SIGNOFF")
4 K ZO F I="MGR","PROD","VOL" S:$D(^%ZOSF(I)) ZO(I)=^%ZOSF(I)
5 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)=$S($D(ZO(Z)):ZO(Z),1:X)
6MGR W !,"NAME OF MANAGER'S NAMESPACE: "_^%ZOSF("MGR")_"// " R X:$S($G(DTIME):DTIME,1:9999) I X]"" X ^("UCICHECK") G MGR:Y="" S ^%ZOSF("MGR")=X
7PROD W !,"PRODUCTION (SIGN-ON) NAMESPACE: "_^%ZOSF("PROD")_"// " R X:$S($G(DTIME):DTIME,1:9999) I X]"" X ^("UCICHECK") G PROD:Y="" S ^%ZOSF("PROD")=Y
8VOL W !,"NAME OF THIS CONFIGURATION: "_^%ZOSF("VOL")_"//" R X:$S($G(DTIME):DTIME,1:9999) I X]"" S:X?1.5U ^%ZOSF("VOL")=X I X'?1.5U W "MUST BE 1-5 uppercase characters." G VOL
9OS S $P(^%ZOSF("OS"),"^",1)="OpenM-NT" S:'$P(^%ZOSF("OS"),"^",2) $P(^%ZOSF("OS"),"^",2)=18
10 W !!,"ALL SET UP",!! Q
11Z ;;
12 ;;ACTJ
13 ;;S Y=$$ACTJ^%ZOSV()
14 ;;AVJ
15 ;;S Y=$$AVJ^%ZOSV()
16 ;;BRK
17 ;;U $I:("":"+B")
18 ;;DEL
19 ;;X "ZR ZS @X" K ^UTILITY("ROU",X)
20 ;;EOFF
21 ;;U $I:("":"+S")
22 ;;EON
23 ;;U $I:("":"-S")
24 ;;EOT
25 ;;S Y=$ZA\1024#2
26 ;;ERRTN
27 ;;^%ZTER
28 ;;ETRP
29 ;;Q
30 ;;GD
31 ;;D ^%GD
32 ;;JOBPARAM
33 ;;D JOBPAR^%ZOSV
34 ;;LABOFF
35 ;;U IO:("":"+S+I-T":$C(13,27))
36 ;;LOAD
37 ;;S %N=0 X "ZL @X F XCNP=XCNP+1:1 S %N=%N+1,%=$T(+%N) Q:$L(%)=0 S @(DIF_XCNP_"",0)"")=%"
38 ;;LPC
39 ;;S Y=$ZC(X)
40 ;;MAXSIZ
41 ;;S $ZS=X+X
42 ;;MGR
43 ;;%SYS
44 ;;MAGTAPE
45 ;;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"
46 ;;MTBOT
47 ;;S Y=$ZA\32#2
48 ;;MTONLINE
49 ;;S Y=$ZA\64#2
50 ;;MTWPROT
51 ;;S Y=$ZA\4#2
52 ;;MTERR;;MAGTAPE ERROR
53 ;;S Y=$ZA\32768#2
54 ;;NBRK
55 ;;U $I:("":"-B")
56 ;;NO-PASSALL
57 ;;U $I:("":"-I+T")
58 ;;NO-TYPE-AHEAD
59 ;;U $I:("":"+F":$C(13,27))
60 ;;PASSALL
61 ;;U $I:("":"+I-T")
62 ;;PRIINQ;; Priority in current queue
63 ;;N %PRIO D ^%PRIO S Y=$S('%PRIO:5,%PRIO>0:8,1:3)
64 ;;PRIORITY;;set priority to X (1=low, 10=high)
65 ;;D @($S(X>7:"NORMAL",X>3:"NORMAL",1:"LOW")_"^%PRIO") ;Don't do HIGH
66 ;;PROGMODE
67 ;;S Y=$ZJ#2
68 ;;PROD
69 ;;VAH
70 ;;RD
71 ;;D ^%RD
72 ;;RESJOB
73 ;;Q:'$D(DUZ) Q:'$D(^XUSEC("XUMGR",+DUZ)) N XQZ S XQZ="^RESJOB[MGR]" D DO^%XUCI
74 ;;RM
75 ;;U $I:X
76 ;;RSEL;;ROUTINE SELECT
77 ;;K ^UTILITY($J) D KERNEL^%RSET K %ST ;Special entry point for VA
78 ;;RSUM
79 ;;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
80 ;;SS
81 ;;D ^%SS
82 ;;SAVE
83 ;;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("ROU",X)="" K XCS
84 ;;SIZE
85 ;;S Y=0 F I=1:1 S %=$T(+I) Q:%="" S Y=Y+$L(%)+2
86 ;;TEST
87 ;;I X?1(1"%",1A).7AN,$D(^$ROUTINE(X))
88 ;;TMK;;MAGTAPE MARK
89 ;;S Y=$ZA\4#2
90 ;;TRAP;;S X="^%ET",@^%ZOSF("TRAP") TO SET ERROR TRAP
91 ;;$ZT=X
92 ;;TRMOFF
93 ;;U $I:("":"-I-T":$C(13,27))
94 ;;TRMON
95 ;;U $I:("":"+I+T")
96 ;;TRMRD
97 ;;S Y=$A($ZB),Y=$S(Y<32:Y,Y=127:Y,1:0)
98 ;;TYPE-AHEAD
99 ;;U $I:("":"-F":$C(13,27))
100 ;;UCI
101 ;;D UCI^%ZOSV
102 ;;UCICHECK
103 ;;S Y=$$UCICHECK^%ZOSV(X)
104 ;;UPPERCASE
105 ;;S Y=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
106 ;;XY
107 ;;S $X=DX,$Y=DY
108 ;;VOL;;VOLUME SET NAME
109 ;;ROU
110 ;;ZD
111 ;;S Y=$ZD(X)
Note: See TracBrowser for help on using the repository browser.