1 | ENARX32 ;(WIRMFO)/SAW/DH/SAB-EQUIPMENT INV. ARCHIVE ;1/10/2001
|
---|
2 | ;;7.0;ENGINEERING;**40,68**;Aug 17, 1993
|
---|
3 | D DT^DICRW S %=1,U="^",DSEC=0
|
---|
4 | I $D(DIFQ(0)) W !,"SHALL I WRITE OVER EXISTING DATA DEFINITIONS" S %=2 D YN^DICN
|
---|
5 | S NO=$P("I 0^I $D(@X)#2,X[U",U,%) I %<1 K DIFQ Q
|
---|
6 | I %=1,$D(DIFQ(0)) W !,"SHALL I WRITE OVER FILE SECURITY CODES" S %=2 D YN^DICN S DSEC=%=1 I %<1 K DIFQ Q
|
---|
7 | Q:'$D(DIFQ) S %=0 W !!,"ARE YOU SURE EVERYTHING'S OK" D YN^DICN I %-1 K DIFQ Q
|
---|
8 | D DT^DICRW K ^UTILITY(U,$J),^UTILITY("DIK",$J) D WAIT^DICD F R=1001:1:1003 D @("^ENARX3"_$E(R,3,4)) W "."
|
---|
9 | F D=6919.3,6919.31,6919.313,6919.32,6919.33,6919.34,6919.35 D IX
|
---|
10 | DATA W "." S (D,DDF(1),DDT(0))=$O(^UTILITY(U,$J,0)) Q:D'>0
|
---|
11 | I '$D(DIFQ(D)) S DTO=0,DMRG=1,DTO(0)=^UTILITY(U,$J,D),Z=^(D)_"0)",D0=^(D,0),@Z=D0,DFR(1)="^UTILITY(U,$J,DDF(1),D0,",DKP='$D(DIFQR(D)) F D0=0:0 S D0=$O(^UTILITY(U,$J,DDF(1),D0)) Q:'$D(^(D0,0)) S Z=^(0) D I^DITR
|
---|
12 | K ^UTILITY(U,$J,DDF(1)),DDF,DDT,DTO,DFR,DFN,DTN G DATA
|
---|
13 | ;
|
---|
14 | W S Y=$P($T(@X),";",2) W !,"NOTE: THIS PACKAGE ALSO CONTAINS "_Y_"S",! Q:'$D(DIFQ(0))
|
---|
15 | S %=2 W ?5,"SHALL I WRITE OVER EXISTING "_Y_"S OF THE SAME NAME" D YN^DICN I %-1 S DIFQ(X)=0 K:%<1 DIFQ
|
---|
16 | Q
|
---|
17 | ;
|
---|
18 | OPT ;OPTION
|
---|
19 | ROU ;ROUTINE DOCUMENTATION NOTE
|
---|
20 | FUNC ;FUNCTION
|
---|
21 | BULL ;BULLETIN
|
---|
22 | SE ;SECURITY KEY
|
---|
23 | HELP ;HELP FRAME
|
---|
24 | DIPT ;PRINT TEMPLATE
|
---|
25 | DIE ;INPUT TEMPLATE
|
---|
26 | DIBT ;SORT TEMPLATE
|
---|
27 | ;
|
---|
28 | IX W "." S DIK="A" F %=0:0 S DIK=$O(^DD(D,DIK)) Q:DIK="" K ^(DIK)
|
---|
29 | S DA(1)=D,DIK="^DD("_D_"," D IXALL^DIK
|
---|
30 | I $D(^DIC(D,"%",0)) S DIK="^DIC(D,""%""," G IXALL^DIK
|
---|