source: WorldVistAEHR/trunk/r/LIST_MANAGER-VALM/VALMW1.m@ 949

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

initial load of WorldVistAEHR

File size: 3.3 KB
Line 
1VALMW1 ;MJK/ALB ;08:33 PM 14 Jan 1993; Conversion Help
2 ;;1;List Manager;;Aug 13, 1993
3 ;
4EN ;;VALM Conversion Analyzer
5 N DIC,Y,VALMPKG,VALMPRE,Y
6CONV W ! S DIC="^DIC(9.4,",DIC(0)="AEMQZ" D ^DIC K DIC G ENQ:Y<0
7 S VALMPKG=+Y,VALMPRE=$P(Y(0),U,2)
8 S %ZIS="PMQ" D ^%ZIS I POP G CONV
9 I '$D(IO("Q")) D
10 .D START
11 E D
12 .D QUE
13 D ^%ZISC G CONV
14ENQ Q
15 ;
16START ; -- check for sdul references
17 N VALMI,VALMPGE,VALMPKGN,VALMY,VALMP,X,VALMHIT,VALMP0,VALMPI,VALMESC,VALMC
18 U IO
19 S VALMPKGN=$P($G(^DIC(9.4,VALMPKG,0)),U),VALMPGE=0
20 D HDR
21 W !!,">>> Will determine if package PROTOCOLS refer to 'SDUL'..."
22 S VALMC=VALMC+3,VALMP=VALMPRE,VALMESC=0
23 F S VALMP=$O(^ORD(101,"B",VALMP)) Q:VALMP=""!($E(VALMP,1,$L(VALMPRE))'=VALMPRE) D Q:VALMESC
24 .S VALMPI=0,VALMHIT=0
25 . F S VALMPI=$O(^ORD(101,"B",VALMP,VALMPI)) Q:'VALMPI D Q:VALMESC W:'VALMHIT "...nothing found"
26 ..Q:'$D(^ORD(101,VALMPI,0)) S VALMP0=^(0)
27 ..D CHK(2) Q:VALMESC W !!?5,"-> ",VALMP
28 ..I $D(^ORD(101,VALMPI,20)),^(20)["SDUL" D CHK(1) Q:VALMESC W !?10,"Entry Action: ",^(20) S VALMHIT=1
29 ..I $D(^ORD(101,VALMPI,15)),^(15)["SDUL" D CHK(1) Q:VALMESC W !?10,"Exit Action: ",^(15) S VALMHIT=1
30 ..I $D(^ORD(101,VALMPI,26)),^(26)["SDUL" D CHK(1) Q:VALMESC W !?10,"Header Code: ",^(26) S VALMHIT=1
31 ..S VALMI=0 K VALMY
32 ..F S VALMI=$O(^ORD(101,VALMPI,10,VALMI)) Q:'VALMI S X=^(VALMI,0) D Q:VALMESC
33 ...I $P($G(^ORD(101,+X,0)),U)["SDUL" S VALMY($P(^(0),U))=""
34 ..I $D(VALMY),'VALMESC D
35 ...S VALMHIT=1
36 ...D CHK(1) Q:VALMESC W !?10,"Attached Protocols:"
37 ...S X=""
38 ...F S X=$O(VALMY(X)) Q:X="" D CHK(1) Q:VALMESC W !?15,"o ",X
39 D:'VALMESC TASKS
40 Q
41 ;
42HDR ; -- print header
43 S VALMPGE=VALMPGE+1
44 W @IOF,!?5,">>> List Manager Conversion Analyzer for '",VALMPKGN,"' <<<",?70,"Page: ",VALMPGE,!
45 S VALMC=2
46 Q
47 ;
48CHK(INCR) ; -- check for ff
49 N Y,X
50 I (VALMC+INCR+3)>IOSL D G CHKQ:VALMESC
51 .I $E(IOST,1,2)="C-" D PAUSE^VALM1 I 'Y S VALMESC=1 Q
52 .D HDR
53 S VALMC=VALMC+INCR
54CHKQ Q
55 ;
56QUE ; -- que job
57 ;
58 K ZTSK,IO("Q")
59 S ZTDESC="List Manager Conversion Analyzer",ZTRTN="START^VALMW1"
60 F X="VALMPRE","VALMPKG" S ZTSAVE(X)=""
61 D ^%ZTLOAD W:$D(ZTSK) " (Task: ",ZTSK,")"
62 Q
63 ;
64TASKS ; -- list tasks
65 N I,X
66 F I=1:1 S X=$P($T(HELP+I),";",3) Q:X="$END" D CHK(1) Q:VALMESC W !,X
67 Q
68 ;
69HELP ;
70 ;;
71 ;;
72 ;; Conversion Task Outline
73 ;; -----------------------
74 ;;
75 ;; 1) Change all references from SDUL to VALM in your routines
76 ;; (Use a utility like VAX DSM's %RCE.)
77 ;;
78 ;; 2) Using the above report, change all code references from
79 ;; SDUL to VALM in the indicated PROTOCOL fields.
80 ;; (You can use the Workbench [DO ^VALMWB] to edit protocols.)
81 ;;
82 ;; 3) If you are going to use List Manager's new 'hidden' menu
83 ;; capability, delete all SDUL protocols from your protocol
84 ;; menus. Otherwise, change all SDUL protocols to VALM protocols
85 ;; of the same name.
86 ;;
87 ;; (Note: If 'SDUL EXPAND' was attached to any of your menus
88 ;; then you should always replace it with 'VALM EXPAND'.
89 ;; The expand action is not part of 'VALM HIDDEN
90 ;; ACTIONS' menu.)
91 ;;
92 ;; 4) If you are going to use 'hidden' menus, then use
93 ;; the Workbench to indicate 'VALM HIDDEN ACTIONS'
94 ;; as the template's hidden menu.
95 ;;
96 ;; 5) Finally, we recommend that you always use the Workbench to
97 ;; make changes to your List Manager applications.
98 ;;
99 ;;$END
Note: See TracBrowser for help on using the repository browser.