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/ZOSFGUX.m@ 719

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

initial load of FOIAVistA 6/30/08 version

File size: 4.0 KB
Line 
1ZOSFGUX ;SFISC/MVB,PUG/TOAD - ZOSF Table for GT.M for Unix ;4/18/07 10:30
2 ;;8.0;KERNEL;**275,425**;Jul 10, 1995;Build 18
3 ;; for GT.M for Unix, 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","TMP" S:$D(^%ZOSF(I)) ZO(I)=^%ZOSF(I)
9 F I=1:2 S Z=$P($T(Z+I),";;",2) Q:Z="" S X=$P($T(Z+1+I),";;",2,99) S:Z="OS" $P(^%ZOSF(Z),"^")=X I Z'="OS" S ^%ZOSF(Z)=$S($D(ZO(Z)):ZO(Z),1:X)
10 ;
11OS S ^%ZOSF("OS")="GT.M (Unix)^19"
12 ;
13MGR 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
14PROD ;
15 W !,"The value of PRODUCTION will be used in the GETENV api."
16 W !,"PRODUCTION (SIGN-ON) UCI,VOLUME SET: "_^%ZOSF("PROD")_"// " R X:DTIME I X]"" X ^("UCICHECK") G PROD:0[Y S ^%ZOSF("PROD")=X
17 ;See that VOL and PROD agree.
18 I ^%ZOSF("PROD")'[^%ZOSF("VOL") S ^%ZOSF("VOL")=$P(^%ZOSF("PROD"),",",2)
19VOL W !,"The VOLUME name must match the one in PRODUCTION."
20 W !,"NAME OF VOLUME SET: "_^%ZOSF("VOL")_"//" R X:DTIME
21 I X]"" D I X'?3U W "MUST BE 3 Upper case." G VOL
22 . I ^%ZOSF("PROD")'[X W !,"Must match PRODUCTION"
23 . S:X?3U ^%ZOSF("VOL")=X
24TMP ;Get the temp directory
25 W !,"The temp directory for the system: '"_^%ZOSF("TMP")_"'//"
26 R X:DTIME I $L(X),X'?1"/".E G TMP
27 I $L(X) S ^%ZOSF("TMP")=X
28 W !,"^%ZOSF setup"
29 Q
30 ;
31Z ;
32 ;;ACTJ
33 ;;S Y=$$ACTJ^%ZOSV()
34 ;;AVJ
35 ;;S Y=$$AVJ^%ZOSV()
36 ;;BRK
37 ;;U $I:(CENABLE)
38 ;;DEL
39 ;;D DEL^%ZOSV2(X) ;N %RD,%OD S %RD=$P($S($ZRO["(":$P($P($ZRO,"(",2),")"),1:$ZRO)," ")_"/",%OD=$S($ZRO["(":$P($ZRO,"(",1)_"/",1:%RD) ZSYSTEM "rm -f "_%RD_X_".m" ZSYSTEM "rm -f "_%OD_X_".o"
40 ;;EOFF
41 ;;U $I:(NOECHO)
42 ;;EON
43 ;;U $I:(ECHO)
44 ;;EOT
45 ;;S Y=$ZA\1024#2 ; <=====
46 ;;ERRTN
47 ;;^%ZTER
48 ;;ETRP
49 ;;Q
50 ;;GD
51 ;;G ^%GD
52 ;;$INC
53 ;;0
54 ;;JOBPARAM
55 ;;G JOBPAR^%ZOSV
56 ;;LABOFF
57 ;;U IO:(NOECHO) ; <=====
58 ;;LOAD
59 ;;D LOAD^%ZOSV2(X) ;S %N=0 F XCNP=XCNP+1:1 S %N=%N+1,%=$T(+%N^@X) Q:$L(%)=0 S @(DIF_XCNP_",0)")=%
60 ;;LPC
61 ;;S Y="" ; <=====
62 ;;MAGTAPE
63 ;;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" ; <=====
64 ;;MAXSIZ
65 ;;Q
66 ;;MGR
67 ;;VAH,ROU
68 ;;MTBOT
69 ;;S Y=$ZA\32#2 ; <=====
70 ;;MTERR
71 ;;S Y=$ZA\32768#2 ; <=====
72 ;;MTONLINE
73 ;;S Y=$ZA\64#2 ; <=====
74 ;;MTWPROT
75 ;;S Y=$ZA\4#2 ; <=====
76 ;;NBRK
77 ;;U $I:(NOCENABLE)
78 ;;NO-PASSALL
79 ;;U $I:(ESCAPE:TERMINATOR="":NOPASTHRU)
80 ;;NO-TYPE-AHEAD
81 ;;U $I:(NOTYPEAHEAD)
82 ;;PASSALL
83 ;;U $I:(NOESCAPE:NOTERMINATOR:PASTHRU)
84 ;;PRIINQ
85 ;;S Y=$$PRIINQ^%ZOSV()
86 ;;PRIORITY
87 ;;Q ;G PRIORITY^%ZOSV
88 ;;PROD
89 ;;VAH,ROU
90 ;;PROGMODE
91 ;;S Y=$$PROGMODE^%ZOSV()
92 ;;RD
93 ;;G ^%RD
94 ;;RESJOB
95 ;;Q:'$D(DUZ) Q:'$D(^XUSEC("XUMGR",+DUZ)) N XQZ S XQZ="^FORCEX[MGR]" D DO^%XUCI ; <=====
96 ;;RM
97 ;;U $I:WIDTH=$S(X<256:X,1:0)
98 ;;RSEL
99 ;;K ^UTILITY($J) D ^%RSEL S X="" X "F S X=$O(%ZR(X)) Q:X="""" S ^UTILITY($J,X)=""""" K %ZR
100 ;;RSUM
101 ;;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 ;;RSUM1
103 ;;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
104 ;;SS
105 ;;D ^ZSY
106 ;;SAVE
107 ;;D SAVE^%ZOSV2(X) ;N %I,%F S %I=$I,%F=$P($S($ZRO["(":$P($P($ZRO,"(",2),")"),1:$ZRO)," ")_"/"_X_".m" O %F:(NEWVERSION) U %F X "F S XCN=$O(@(DIE_XCN_"")"")) Q:+XCN'=XCN S %=@(DIE_XCN_"",0)"") Q:$E(%,1)=""$"" I $E(%)'="";"" W %,!" C %F U %I
108 ;;SIZE
109 ;;S Y=0 F I=1:1 S %=$T(+I) Q:%="" S Y=Y+$L(%)+2 ; <=====
110 ;;TEST
111 ;;I X]"",$T(^@X)]""
112 ;;TMK
113 ;;S Y=$ZA\16384#2
114 ;;TMP
115 ;;/tmp/
116 ;;TRAP
117 ;;$ZT="G "_X
118 ;;TRMOFF
119 ;;U $I:(TERMINATOR="")
120 ;;TRMON
121 ;;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))
122 ;;TRMRD
123 ;;S Y=$A($ZB)
124 ;;TYPE-AHEAD
125 ;;U $I:(TYPEAHEAD)
126 ;;UCI
127 ;;S Y=^%ZOSF("PROD")
128 ;;UCICHECK
129 ;;S Y=1
130 ;;UPPERCASE
131 ;;S Y=$TR(X,"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ")
132 ;;XY
133 ;;S $X=DX,$Y=DY ; <=====
134 ;;VOL
135 ;;ROU
136 ;;ZD
137 ;;S Y=$$HTE^XLFDT(X,2) I $L($P(Y,"/"))=1 S Y=0_Y
Note: See TracBrowser for help on using the repository browser.