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/ZOSFIS2.m@ 949

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

initial load of FOIAVistA 6/30/08 version

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