source: FOIAVistA/trunk/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/ZINDX53.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1%INDX53 ;SF-ISC/RWF - LOAD ROUTINE FILE ;6/20/91 14:49 ;
2 ;;7.3;TOOLKIT;;Apr 25, 1995
3A S RTN="$",DLAYGO=9.8 W !!," Loading the ROUTINE file now.",!
4B S RTN=$O(^UTILITY($J,1,RTN)) I RTN'?1U.UN&(RTN'?1"%".UN) G C
5 D GETDA G B:DA'>0 W:$X>70 ! W $J(RTN,10)
6 F %IN1=19,20,21,"T" F J=0:0 S J=$O(^DIC(9.8,DA,%IN1,J)) Q:J'>0 S $P(^DIC(9.8,DA,%IN1,J,0),U,3)="n"
7 S DIE=DIC,DR="1.2///"_(+^UTILITY($J,1,RTN,0))_";1.4////"_DT D ^DIE
8 ;E errors and warnings.
9 S LOC="L",IND=21 D P ;LOCAL VARIABLES
10 S LOC="G",IND=22 D P ;GLOBAL VARIABLES
11 ;"NAKED GLOBALS",! S LOC="N",SYM="^(" D P
12 S LOC="T",IND="T" D P ;LINE TAGS
13 S LOC="X",IND=19 D P ;EXTERNAL REFERENCES
14 ;SAVE COMMAND LIST FOR LATER WORK
15 K ^DIC(9.8,DA,"CMD") F %IN1=1:1 Q:'$D(^UTILITY($J,1,RTN,"COM",%IN1)) S ^DIC(9.8,DA,"CMD",%IN1,0)=^UTILITY($J,1,RTN,"COM",%IN1)
16 G B
17P S %IN2=-1,PC=0
18 F %IN1=0:0 S %IN2=$O(^UTILITY($J,1,RTN,LOC,%IN2)) Q:%IN2="" D S
19 K DR,DIE Q
20S S %IN3=$S("G"[LOC:$E(%IN2,2,99),1:%IN2),Y=$O(^DIC(9.8,DA,IND,"B",%IN3,0)) G S2:Y>0 Q:%IN3[""""
21 S DIC="^DIC(9.8,DA(1),"_$C(34)_IND_$C(34)_",",DA(1)=DA,X=%IN3,DIC("P")=+$P(^DD(9.8,$S(LOC="L":21,LOC="G":22,LOC="T":5,LOC="X":19),0),U,2) D FILE^DICN
22S2 S $P(^DIC(9.8,DA,IND,+Y,0),U,3)="y"
23 Q
24C S ROU="$" K DLAYGO,DR,DIC,DIE
25C1 S ROU=$O(^UTILITY($J,1,ROU)) I ROU'?1U.UN&(ROU'?1"%".UN) G END
26 S RTN=ROU D GETDA G C1:DA'>0 S %IN1=DA F %I1=0:0 S %I1=$O(^DIC(9.8,%IN1,19,%I1)) Q:%I1'>0 S %IN2=^(%I1,0),TAG=$P(%IN2," ",2),RTN=$P(%IN2," ",1) D ETAG
27 G C1
28GETDA S Y=0,DIC="^DIC(9.8,",DIC(0)="MXZL"
29GET1 S Y=$O(^DIC(9.8,"B",RTN,Y)) I Y>0 G GOT:"R"[$P(^DIC(9.8,Y,0),U,2),GET1
30GET2 S X=""""_RTN_"""",DIC("DR")="1///R" D ^DIC
31GOT S DA=+Y
32 Q
33ETAG S DA=0 Q:'$D(^UTILITY($J,1,RTN))
34E2 S DA=$O(^DIC(9.8,"B",RTN,DA)) I DA>0,$P(^DIC(9.8,DA,0),U,2)'="R" G E2
35 Q:DA'>0 S Y=$O(^DIC(9.8,DA,20,"B",ROU,0)) I Y>0 S $P(^DIC(9.8,DA,20,Y,0),"^",3)="y" Q
36 S DIE="^DIC(9.8,",DR="20///"_ROU,DR(2,9.804)="3///y" D ^DIE
37 Q
38END K DIC,DIE,DIR,DR,ROU,%IN1,LOC,TAG
39 Q
Note: See TracBrowser for help on using the repository browser.