source: FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGYMFIL2.m@ 1645

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

initial load of FOIAVistA 6/30/08 version

File size: 3.4 KB
Line 
1DGYMFIL2 ;ALB/MLI - Set File Access Codes for MAS files ; October 20, 1994
2 ;;5.3;Registration;**49**;Aug 13, 1993
3 ;
4 ; This routine will loop through the MAS files and show the site's
5 ; existing file access and the recommended file access.
6 ;
7PRINT ; generate listing of existing vs recommended file access
8 N BRKLINE,FLAG,I,LINE,PAGE,X
9 S (FLAG,PAGE)=0,$P(LINE,"-",80)="",$P(BRKLINE,"- ",41)=""
10 D HEADER I FLAG Q
11 F I=1:1 S X=$P($T(FILES+I),";;",2) Q:X="QUIT"!FLAG D
12 . N CUR,REC ; cur=current, rec=recommended
13 . S REC="@^d^"_$P(X,"^",2,5) ; recommended access (DD always @)
14 . S CUR=$G(^DIC(+X,0,"DD"))_"^"_$G(^("RD"))_"^"_$G(^("WR"))_"^"_$G(^("DEL"))_"^"_$G(^("LAYGO"))
15 . I $Y>(IOSL-4) D HEADER I FLAG Q
16 . W !,$S(CUR=REC:" ",1:"*"),+X S X=$P($G(^DIC(+X,0)),"^",1) W ?8,$E(X,1,30) I $L(X)>30 W "..."
17 . D WRITE(CUR) W ! ; write current access
18 . I CUR=REC W ?43,"Currently meets recommended levels"
19 . E D WRITE(REC) ; write recommended access
20 . W !,BRKLINE
21 Q
22 ;
23 ;
24WRITE(X) ; write out the access codes in columns
25 ;
26 ; input - X as string of dd^rd^wr^del^laygo access
27 ;
28 W ?43,$P(X,"^",1),?51,$P(X,"^",2),?57,$P(X,"^",3),?65,$P(X,"^",4),?75,$P(X,"^",5)
29 Q
30 ;
31 ;
32HEADER ; print header for comparison report
33 N DIR,DIRUT,DTOUT,DUOUT,X,Y
34 S PAGE=PAGE+1
35 I $E(IOST,1,2)="C-",(PAGE>1) S DIR(0)="E" D ^DIR S FLAG='Y I FLAG Q
36 W @IOF,!?29,"MAS File Access Report",?70,"PAGE: ",$J(PAGE,2)
37 W !!," File",?8,"File",?54,"File Access Type"
38 W !," Number",?8,"Name",?43,"DD",?49,"Read",?55,"Write",?63,"Delete",?73,"Laygo"
39 W !,LINE
40 Q
41 ;
42 ;
43LOAD ; load files into TMP global
44 F I=1:1 S X=$P($T(FILES+I),";;",2) Q:X="QUIT" S ^TMP($J,"DGYMFILE",+X)=X
45 Q
46 ;
47FILES ; list of file numbers and names for MAS files w/recommended access
48 ;;2^D^@^D
49 ;;5^@^@^@
50 ;;8^@^@^@
51 ;;8.1^@^@^@
52 ;;8.2^@^@^@
53 ;;10^@^@^@
54 ;;11^@^@^@
55 ;;13^@^@^@
56 ;;21^@^@^@
57 ;;22^@^@^@
58 ;;23^@^@^@
59 ;;25^@^@^@
60 ;;30^@^@^@
61 ;;35^@^@^@
62 ;;37^@^@^@
63 ;;38.1^D^@^D
64 ;;38.5^@^@^@
65 ;;38.6^@^@^@
66 ;;39.1^@^@^@
67 ;;39.2^@^@^@
68 ;;39.3^@^@^@
69 ;;40.1^@^D^@
70 ;;40.15^D^D^D
71 ;;40.7^@^@^@
72 ;;40.8^@^@^@
73 ;;40.9^@^@^@
74 ;;41.1^D^D^D
75 ;;41.9^@^@^@
76 ;;42^D^@^D
77 ;;42.4^@^@^@
78 ;;42.5^D^D^D
79 ;;42.55^@^@^@
80 ;;42.6^D^D^D
81 ;;42.7^D^D^D
82 ;;43^D^@^@
83 ;;43.1^D^D^D
84 ;;43.11^D^D^D
85 ;;43.4^@^@^@
86 ;;43.5^D^D^D
87 ;;43.61^@^@^@
88 ;;43.7^@^@^@
89 ;;44^D^@^D
90 ;;45^D^@^@
91 ;;45.1^@^@^@
92 ;;45.2^D^@^D
93 ;;45.3^@^@^@
94 ;;45.4^@^@^@
95 ;;45.5^@^@^@
96 ;;45.6^@^@^@
97 ;;45.61^@^@^@
98 ;;45.62^@^@^@
99 ;;45.64^@^@^@
100 ;;45.7^D^@^D
101 ;;45.81^@^@^@
102 ;;45.82^@^@^@
103 ;;45.83^@^@^@
104 ;;45.84^@^@^@
105 ;;45.85^D^@^@
106 ;;45.86^@^@^@
107 ;;45.87^@^@^@
108 ;;45.88^@^@^@
109 ;;45.89^@^@^@
110 ;;45.9^D^D^D
111 ;;45.91^@^@^@
112 ;;47^@^@^@
113 ;;48^D^@^@
114 ;;48.5^@^@^@
115 ;;389.9^@^@^@
116 ;;391^@^@^@
117 ;;391.1^@^@^@
118 ;;391.51^@^@^@
119 ;;392^@^@^@
120 ;;392.1^D^D^D
121 ;;392.2^D^D^D
122 ;;392.3^@^@^@
123 ;;392.4^D^@^D
124 ;;393^D^D^D
125 ;;393.1^@^@^@
126 ;;393.2^@^@^@
127 ;;393.3^@^@^@
128 ;;393.41^@^@^@
129 ;;405^@^@^@
130 ;;405.1^D^@^D
131 ;;405.2^@^@^@
132 ;;405.3^@^@^@
133 ;;405.4^D^@^D
134 ;;405.5^@^@^@
135 ;;405.6^D^@^D
136 ;;406.41^D^@^D
137 ;;407.5^D^D^D
138 ;;407.6^@^@^@
139 ;;407.7^@^@^@
140 ;;408^@^@^@
141 ;;408.11^@^@^@
142 ;;408.12^@^@^@
143 ;;408.13^@^@^@
144 ;;408.21^@^@^@
145 ;;408.22^@^@^@
146 ;;408.31^@^@^@
147 ;;408.32^@^@^@
148 ;;408.33^@^@^@
149 ;;408.34^@^@^@
150 ;;408.41^@^@^@
151 ;;408.42^@^@^@
152 ;;409.1^@^@^@
153 ;;409.2^@^@^@
154 ;;409.3^D^D^D
155 ;;409.41^@^@^@
156 ;;409.42^D^D^D
157 ;;409.43^D^D^D
158 ;;409.44^D^D^D
159 ;;409.45^@^@^@
160 ;;409.5^D^D^D
161 ;;409.61^@^@^@
162 ;;409.62^@^@^@
163 ;;409.63^@^@^@
164 ;;409.65^@^@^@
165 ;;409.66^@^@^@
166 ;;409.68^@^@^@
167 ;;409.71^D^@^D
168 ;;409.72^D^D^D
169 ;;409.81^@^@^@
170 ;;409.82^D^D^D
171 ;;QUIT
Note: See TracBrowser for help on using the repository browser.