source: FOIAVistA/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DIPKINI1.m@ 1334

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1DIPKINI1 ; ;10:28 AM 30 Mar 1999
2 ;;22.0;VA FileMan;;Mar 30, 1999
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 ; LOADS AND INDEXES DD'S
5 ;
6 K DIF,DIK,D,DDF,DDT,DTO,D0,DLAYGO,DIC,DIDUZ,DIR,DA,DFR,DTN,DIX,DZ D DT^DICRW S %=1,U="^",DSEC=1
7 S NO=$P("I 0^I $D(@X)#2,X[U",U,%) I %<1 K DIFQ Q
8ASK ;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
9 ;Q:'$D(DIFQ) S %=2 W !!,"ARE YOU SURE EVERYTHING'S OK" D YN^DICN I %-1 K DIFQ Q
10 I $D(DIFKEP) F DIDIU=0:0 S DIDIU=$O(DIFKEP(DIDIU)) Q:DIDIU'>0 S DIU=DIDIU,DIU(0)=DIFKEP(DIDIU) D EN^DIU2
11 D DT^DICRW K ^UTILITY(U,$J),^UTILITY("DIK",$J) D WAIT^DICD
12 S DN="^DIPKI" F R=1:1:11 D @(DN_$$B36(R)) W "."
13 F S D=$O(^UTILITY(U,$J,"SBF","")) Q:D'>0 K:'DIFQ(D) ^(D) S D=$O(^(D,"")) I D>0 K ^(D) D IX
14DATA W "." S (D,DDF(1),DDT(0))=$O(^UTILITY(U,$J,0)) Q:D'>0
15 I DIFQR(D) S DTO=0,DMRG=1,DTO(0)=^(D),Z=^(D)_"0)",D0=^(D,0),@Z=D0,DFR(1)="^UTILITY(U,$J,DDF(1),D0,",DKP=DIFQR(D)'=2 F D0=0:0 S D0=$O(^UTILITY(U,$J,DDF(1),D0)) S:D0="" D0=-1 Q:'$D(^(D0,0)) S Z=^(0) D I^DITR
16 K ^UTILITY(U,$J,DDF(1)),DDF,DDT,DTO,DFR,DFN,DTN G DATA
17 ;
18W S Y=$P($T(@X),";",2) W !,"NOTE: This package also contains "_Y_"S",! Q:'$D(DIFQ(0))
19 S %=1 Q
20 S %=1 W ?6,"SHALL I WRITE OVER EXISTING "_Y_"S OF THE SAME NAME" D YN^DICN I '% W !?6,"Answer YES to replace the current "_Y_"S with the incoming ones." G W
21 S:%=2 DIFQ(X)=0 K:%<0 DIFQ
22 Q
23 ;
24OPT ;OPTION
25RTN ;ROUTINE DOCUMENTATION NOTE
26FUN ;FUNCTION
27BUL ;BULLETIN
28KEY ;SECURITY KEY
29HEL ;HELP FRAME
30DIP ;PRINT TEMPLATE
31DIE ;INPUT TEMPLATE
32DIB ;SORT TEMPLATE
33DIS ;FORM
34REM ;REMOTE PROCEDURE
35 ;
36SBF ;FILE AND SUB FILE NUMBERS
37IX W "." S DIK="A" F %=0:0 S DIK=$O(^DD(D,DIK)) Q:DIK="" K ^(DIK)
38 S DA(1)=D,DIK="^DD("_D_"," D IXALL^DIK
39 I $D(^DIC(D,"%",0)) S DIK="^DIC(D,""%""," G IXALL^DIK
40 Q
41B36(X) Q $$N(X\(36*36)#36+1)_$$N(X\36#36+1)_$$N(X#36+1)
42N(%) Q $E("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",%)
Note: See TracBrowser for help on using the repository browser.