source: LSFind/tag/1.0/VWBFPFND.KID@ 1768

Last change on this file since 1768 was 1768, checked in by Jim B., 8 years ago
File size: 8.4 KB
Line 
1KIDS Distribution saved on Jul 26, 2016@15:53:57
2Find strings or labels in routines c 2016 Jim Bell, BFP, LLC
3**KIDS**:VWBFPFND*1.0*0^
4
5**INSTALL NAME**
6VWBFPFND*1.0*0
7"BLD",8559,0)
8VWBFPFND*1.0*0^^0^3160726^n
9"BLD",8559,1,0)
10^^1^1^3160726^
11"BLD",8559,1,1,0)
12See installed option VWBFPFND
13"BLD",8559,4,0)
14^9.64PA^^
15"BLD",8559,6.3)
161
17"BLD",8559,"KRN",0)
18^9.67PA^779.2^20
19"BLD",8559,"KRN",.4,0)
20.4
21"BLD",8559,"KRN",.401,0)
22.401
23"BLD",8559,"KRN",.402,0)
24.402
25"BLD",8559,"KRN",.403,0)
26.403
27"BLD",8559,"KRN",.5,0)
28.5
29"BLD",8559,"KRN",.84,0)
30.84
31"BLD",8559,"KRN",3.6,0)
323.6
33"BLD",8559,"KRN",3.8,0)
343.8
35"BLD",8559,"KRN",9.2,0)
369.2
37"BLD",8559,"KRN",9.8,0)
389.8
39"BLD",8559,"KRN",9.8,"NM",0)
40^9.68A^1^1
41"BLD",8559,"KRN",9.8,"NM",1,0)
42VWBFPFND^^0^B9263114
43"BLD",8559,"KRN",9.8,"NM","B","VWBFPFND",1)
44
45"BLD",8559,"KRN",19,0)
4619
47"BLD",8559,"KRN",19,"NM",0)
48^9.68A^1^1
49"BLD",8559,"KRN",19,"NM",1,0)
50VWBFPFND^^0
51"BLD",8559,"KRN",19,"NM","B","VWBFPFND",1)
52
53"BLD",8559,"KRN",19.1,0)
5419.1
55"BLD",8559,"KRN",101,0)
56101
57"BLD",8559,"KRN",409.61,0)
58409.61
59"BLD",8559,"KRN",771,0)
60771
61"BLD",8559,"KRN",779.2,0)
62779.2
63"BLD",8559,"KRN",870,0)
64870
65"BLD",8559,"KRN",8989.51,0)
668989.51
67"BLD",8559,"KRN",8989.52,0)
688989.52
69"BLD",8559,"KRN",8994,0)
708994
71"BLD",8559,"KRN","B",.4,.4)
72
73"BLD",8559,"KRN","B",.401,.401)
74
75"BLD",8559,"KRN","B",.402,.402)
76
77"BLD",8559,"KRN","B",.403,.403)
78
79"BLD",8559,"KRN","B",.5,.5)
80
81"BLD",8559,"KRN","B",.84,.84)
82
83"BLD",8559,"KRN","B",3.6,3.6)
84
85"BLD",8559,"KRN","B",3.8,3.8)
86
87"BLD",8559,"KRN","B",9.2,9.2)
88
89"BLD",8559,"KRN","B",9.8,9.8)
90
91"BLD",8559,"KRN","B",19,19)
92
93"BLD",8559,"KRN","B",19.1,19.1)
94
95"BLD",8559,"KRN","B",101,101)
96
97"BLD",8559,"KRN","B",409.61,409.61)
98
99"BLD",8559,"KRN","B",771,771)
100
101"BLD",8559,"KRN","B",779.2,779.2)
102
103"BLD",8559,"KRN","B",870,870)
104
105"BLD",8559,"KRN","B",8989.51,8989.51)
106
107"BLD",8559,"KRN","B",8989.52,8989.52)
108
109"BLD",8559,"KRN","B",8994,8994)
110
111"BLD",8559,"QUES",0)
112^9.62^^
113"BLD",8559,"REQB",0)
114^9.611^^
115"KRN",19,11343,-1)
1160^1
117"KRN",19,11343,0)
118VWBFPFND^Find Routine Labels or Strings^^R^^^^^^^^
119"KRN",19,11343,1,0)
120^19.06^5^5^3160726^^
121"KRN",19,11343,1,1,0)
122This is an alternative to the %RSE that not only lists all the
123"KRN",19,11343,1,2,0)
124routines from RSEL, but then lists ALL the routines, whether
125"KRN",19,11343,1,3,0)
126there is a hit or not.
127"KRN",19,11343,1,4,0)
128This routine will simply display target matches, simplifying
129"KRN",19,11343,1,5,0)
130the review.
131"KRN",19,11343,25)
132ASK^VWBFPFND
133"KRN",19,11343,"U")
134FIND ROUTINE LABELS OR STRINGS
135"MBREQ")
1360
137"ORD",18,19)
13819;18;;;OPT^XPDTA;OPTF1^XPDIA;OPTE1^XPDIA;OPTF2^XPDIA;;OPTDEL^XPDIA
139"ORD",18,19,0)
140OPTION
141"QUES","XPF1",0)
142Y
143"QUES","XPF1","??")
144^D REP^XPDH
145"QUES","XPF1","A")
146Shall I write over your |FLAG| File
147"QUES","XPF1","B")
148YES
149"QUES","XPF1","M")
150D XPF1^XPDIQ
151"QUES","XPF2",0)
152Y
153"QUES","XPF2","??")
154^D DTA^XPDH
155"QUES","XPF2","A")
156Want my data |FLAG| yours
157"QUES","XPF2","B")
158YES
159"QUES","XPF2","M")
160D XPF2^XPDIQ
161"QUES","XPI1",0)
162YO
163"QUES","XPI1","??")
164^D INHIBIT^XPDH
165"QUES","XPI1","A")
166Want KIDS to INHIBIT LOGONs during the install
167"QUES","XPI1","B")
168NO
169"QUES","XPI1","M")
170D XPI1^XPDIQ
171"QUES","XPM1",0)
172PO^VA(200,:EM
173"QUES","XPM1","??")
174^D MG^XPDH
175"QUES","XPM1","A")
176Enter the Coordinator for Mail Group '|FLAG|'
177"QUES","XPM1","B")
178
179"QUES","XPM1","M")
180D XPM1^XPDIQ
181"QUES","XPO1",0)
182Y
183"QUES","XPO1","??")
184^D MENU^XPDH
185"QUES","XPO1","A")
186Want KIDS to Rebuild Menu Trees Upon Completion of Install
187"QUES","XPO1","B")
188NO
189"QUES","XPO1","M")
190D XPO1^XPDIQ
191"QUES","XPZ1",0)
192Y
193"QUES","XPZ1","??")
194^D OPT^XPDH
195"QUES","XPZ1","A")
196Want to DISABLE Scheduled Options, Menu Options, and Protocols
197"QUES","XPZ1","B")
198NO
199"QUES","XPZ1","M")
200D XPZ1^XPDIQ
201"QUES","XPZ2",0)
202Y
203"QUES","XPZ2","??")
204^D RTN^XPDH
205"QUES","XPZ2","A")
206Want to MOVE routines to other CPUs
207"QUES","XPZ2","B")
208NO
209"QUES","XPZ2","M")
210D XPZ2^XPDIQ
211"RTN")
2121
213"RTN","VWBFPFND")
2140^1^B9263114
215"RTN","VWBFPFND",1,0)
216VWBFPFND ;WV/BFP/jBell Portland, OR display labels in routine(s) May 2016
217"RTN","VWBFPFND",2,0)
218 ;;**LOCAL**;;;;Build 1
219"RTN","VWBFPFND",3,0)
220 ;; This program is free software: you can redistribute it and/or modify
221"RTN","VWBFPFND",4,0)
222 ;; it under the terms of the GNU General Public License as published by
223"RTN","VWBFPFND",5,0)
224 ;; the Free Software Foundation, either version 3 of the License, or
225"RTN","VWBFPFND",6,0)
226 ;; (at your option) any later version.
227"RTN","VWBFPFND",7,0)
228 ;;
229"RTN","VWBFPFND",8,0)
230 ;; This program is distributed in the hope that it will be useful,
231"RTN","VWBFPFND",9,0)
232 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
233"RTN","VWBFPFND",10,0)
234 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
235"RTN","VWBFPFND",11,0)
236 ;; GNU General Public License for more details.
237"RTN","VWBFPFND",12,0)
238 ;;
239"RTN","VWBFPFND",13,0)
240 ;; You should have received a copy of the GNU General Public License
241"RTN","VWBFPFND",14,0)
242 ;; along with this program. If not, see <http://www.gnu.org/licenses>
243"RTN","VWBFPFND",15,0)
244 Q
245"RTN","VWBFPFND",16,0)
246 ;
247"RTN","VWBFPFND",17,0)
248LL ;Find labels or strings
249"RTN","VWBFPFND",18,0)
250 ;***********************************************************
251"RTN","VWBFPFND",19,0)
252 ;*For gtm environs *
253"RTN","VWBFPFND",20,0)
254 ;* After driving myself to Van Gogh level insanity trying *
255"RTN","VWBFPFND",21,0)
256 ;* to remember line labels in only MY routines, or using *
257"RTN","VWBFPFND",22,0)
258 ;* %RSE for string find and getting some several thousand *
259"RTN","VWBFPFND",23,0)
260 ;* routine names AND being in a non-connective locale *
261"RTN","VWBFPFND",24,0)
262 ;* (idyll fingers, etc, etc...) I finally did this routine *
263"RTN","VWBFPFND",25,0)
264 ;* that will only list the targeted item in the routine *
265"RTN","VWBFPFND",26,0)
266 ;* set. The immediate benefit: I still have 2 ears. *
267"RTN","VWBFPFND",27,0)
268 ;***********************************************************
269"RTN","VWBFPFND",28,0)
270 ;
271"RTN","VWBFPFND",29,0)
272 Q
273"RTN","VWBFPFND",30,0)
274 ;
275"RTN","VWBFPFND",31,0)
276X W !?5 F I=1:1:10 W !,$T(LL+I^VWBFPFND)
277"RTN","VWBFPFND",32,0)
278 W !
279"RTN","VWBFPFND",33,0)
280 Q
281"RTN","VWBFPFND",34,0)
282 ;
283"RTN","VWBFPFND",35,0)
284C R !,"String: ",MATCH:30
285"RTN","VWBFPFND",36,0)
286 I '$L(MATCH) Q
287"RTN","VWBFPFND",37,0)
288 E W !?10,"Searching for ",$S(WHAT="L":"LABEL ",1:"STRING "),""""_MATCH_"""" G @WHERE
289"RTN","VWBFPFND",38,0)
290 ;
291"RTN","VWBFPFND",39,0)
292A G @WHERE
293"RTN","VWBFPFND",40,0)
294 ;
295"RTN","VWBFPFND",41,0)
296ASK N WHAT,WHERE,ANS,R,X,I,J
297"RTN","VWBFPFND",42,0)
298 D X
299"RTN","VWBFPFND",43,0)
300A2 K %ZR S ANS=""
301"RTN","VWBFPFND",44,0)
302 W !!,"(L)abel only, (S)tring match in routine set?: " R WHAT:30 Q:'$L(WHAT)
303"RTN","VWBFPFND",45,0)
304 S WHAT=$E($$UP^XLFSTR(WHAT),1)
305"RTN","VWBFPFND",46,0)
306 S WHERE=$S(WHAT="L":"LAB",WHAT="S":"STR",WHAT="H":"HELP",1:"LAB")
307"RTN","VWBFPFND",47,0)
308 S ANS="C"
309"RTN","VWBFPFND",48,0)
310 S ANS=$E($$UP^XLFSTR(ANS),1)
311"RTN","VWBFPFND",49,0)
312A3 D @ANS
313"RTN","VWBFPFND",50,0)
314 G A2
315"RTN","VWBFPFND",51,0)
316 ;
317"RTN","VWBFPFND",52,0)
318LAB D ^%RSEL
319"RTN","VWBFPFND",53,0)
320 Q:$D(%ZR)#11 ;No selection array
321"RTN","VWBFPFND",54,0)
322 D ^%ZIS U IO
323"RTN","VWBFPFND",55,0)
324 S R="" F S R=$O(%ZR(R)) Q:R="" D
325"RTN","VWBFPFND",56,0)
326 . S MATCH=$S('$L($G(MATCH)):"",1:MATCH)
327"RTN","VWBFPFND",57,0)
328 . F I=1:1 S X=$T(@R+I^@R) Q:X="" S LABEL=$P(X," ") I $L(LABEL) D
329"RTN","VWBFPFND",58,0)
330 .. I ANS="A",MATCH="" S %ZR(R,$O(%ZR(R," "),-1)+1)=X Q
331"RTN","VWBFPFND",59,0)
332 .. I ANS="C",X[MATCH S %ZR(R,$O(%ZR(R," "),-1)+1)=X Q
333"RTN","VWBFPFND",60,0)
334 .. I ANS="E",X=MATCH S %ZR(R,$O(%ZR(R," "),-1)+1)=X Q
335"RTN","VWBFPFND",61,0)
336 D WR,^%ZISC
337"RTN","VWBFPFND",62,0)
338 Q
339"RTN","VWBFPFND",63,0)
340 ;
341"RTN","VWBFPFND",64,0)
342STR ;Strings in the code
343"RTN","VWBFPFND",65,0)
344 I '$L(MATCH) W !?4,"Dude! No info!" Q
345"RTN","VWBFPFND",66,0)
346 D ^%RSEL
347"RTN","VWBFPFND",67,0)
348 Q:$D(%ZR)#11 ;No selection array
349"RTN","VWBFPFND",68,0)
350 D ^%ZIS U IO
351"RTN","VWBFPFND",69,0)
352 S R="" F S R=$O(%ZR(R)) Q:R="" D
353"RTN","VWBFPFND",70,0)
354 . F I=1:1 S X=$T(@R+I^@R) Q:X="" D
355"RTN","VWBFPFND",71,0)
356 .. F J=1:1:$L(X,MATCH) I X[MATCH S %ZR(R,$O(%ZR(" "),-1)+1)="+"_I_" ->"_X
357"RTN","VWBFPFND",72,0)
358 D WR,^%ZISC
359"RTN","VWBFPFND",73,0)
360 Q
361"RTN","VWBFPFND",74,0)
362 ;
363"RTN","VWBFPFND",75,0)
364WR ;Go through %ZR array and only print path/routine name
365"RTN","VWBFPFND",76,0)
366 ; target...
367"RTN","VWBFPFND",77,0)
368 W !,"Searching for ",MATCH
369"RTN","VWBFPFND",78,0)
370 S R="" F S R=$O(%ZR(R)) Q:R="" D:$O(%ZR(R,0))
371"RTN","VWBFPFND",79,0)
372 . W !,%ZR(R)_R
373"RTN","VWBFPFND",80,0)
374 . S N=0 F S N=$O(%ZR(R,N)) Q:'+N W !?4,%ZR(R,N)
375"RTN","VWBFPFND",81,0)
376 Q
377"RTN","VWBFPFND",82,0)
378 ;
379"RTN","VWBFPFND",83,0)
380 ;fini
381"VER")
3828.0^22.0
383**END**
384**END**
Note: See TracBrowser for help on using the repository browser.