source: FOIAVistA/tag/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DINIT26.m@ 636

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

initial load of FOIAVistA 6/30/08 version

File size: 3.4 KB
Line 
1DINIT26 ;SFISC/XAK-INITIALIZE VA FILEMAN ;9/9/94 14:16
2 ;;22.0;VA FileMan;;Mar 30, 1999
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 F I=1:2 S X=$T(Q+I) G ^DINIT260:X="" S Y=$E($T(Q+I+1),5,999),X=$E(X,4,999),@X=Y
5Q Q
6 ;;^DIC(1.11,0,"GL")
7 ;;=^DIAR(1.11,
8 ;;^DIC("B","ARCHIVAL ACTIVITY",1.11)
9 ;;=
10 ;;^DIC(1.11,"%D",0)
11 ;;=^^1^1^2930712^
12 ;;^DIC(1.11,"%D",1,0)
13 ;;=This file stores information and status of data archiving activities.
14 ;;^DD(1.11,0)
15 ;;=FIELD^^16^23
16 ;;^DD(1.11,0,"DT")
17 ;;=2920514
18 ;;^DD(1.11,0,"ID",1)
19 ;;=W " ",$O(^DD(+$P(^(0),U,2),0,"NM",0)),$E(^DIAR(1.11,Y,0),0)
20 ;;^DD(1.11,0,"ID",4)
21 ;;=W ?40,$E($P(^(0),U,5),4,5)_"-"_$E($P(^(0),U,5),6,7)_"-"_$E($P(^(0),U,5),2,3)
22 ;;^DD(1.11,0,"ID",7)
23 ;;=W " ",$P($P($C(59)_$S($D(^DD(1.11,7,0)):$P(^(0),U,3),1:0),$C(59)_$P(^DIAR(1.11,Y,0),U,8)_":",2),$C(59),1)
24 ;;^DD(1.11,0,"ID",8)
25 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^VA(200,+$P(^(0),U,9),0))#2:$P(^(0),U,1),1:""),C=$P($G(^DD(200,.01,0)),U,2) D:C]"" Y^DIQ:Y]"" W " SELECTOR:",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
26 ;;^DD(1.11,0,"ID",16)
27 ;;=W " ",@("$P($P($C(59)_$S($D(^DD(1.11,16,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,17)_"":"",2),$C(59),1)")
28 ;;^DD(1.11,0,"NM","ARCHIVAL ACTIVITY")
29 ;;=
30 ;;^DD(1.11,.01,0)
31 ;;=ARCHIVE NUMBER^RNJ7,0^^0;1^K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X
32 ;;^DD(1.11,.01,1,0)
33 ;;=^.1
34 ;;^DD(1.11,.01,1,1,0)
35 ;;=1.11^B
36 ;;^DD(1.11,.01,1,1,1)
37 ;;=S ^DIAR(1.11,"B",$E(X,1,30),DA)=""
38 ;;^DD(1.11,.01,1,1,2)
39 ;;=K ^DIAR(1.11,"B",$E(X,1,30),DA)
40 ;;^DD(1.11,.01,3)
41 ;;=Type a Number between 1 and 9999999, 0 Decimal Digits
42 ;;^DD(1.11,1,0)
43 ;;=FILE^RP1'^DIC(^0;2^Q
44 ;;^DD(1.11,1,1,0)
45 ;;=^.1
46 ;;^DD(1.11,1,1,1,0)
47 ;;=1.11^C
48 ;;^DD(1.11,1,1,1,1)
49 ;;=S ^DIAR(1.11,"C",$E(X,1,30),DA)=""
50 ;;^DD(1.11,1,1,1,2)
51 ;;=K ^DIAR(1.11,"C",$E(X,1,30),DA)
52 ;;^DD(1.11,1,3)
53 ;;=Enter the file that this archival activity will effect.
54 ;;^DD(1.11,2,0)
55 ;;=SEARCH TEMPLATE^RP.401^DIBT(^0;3^Q
56 ;;^DD(1.11,2,3)
57 ;;=Enter the name of the sort/search template that you wish to use.
58 ;;^DD(1.11,3,0)
59 ;;=PRINT TEMPLATE^R*P.4'X^DIPT(^0;4^S DIC("S")="I $P(^(0),U,8)="_$S($D(DIAX):2,1:1)_",$P(^(0),U,4)=$P(^DIAR(1.11,DA,0),U,2)",DIC(0)="QE",D="F"_+$P(^DIAR(1.11,DA,0),U,2) D IX^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
60 ;;^DD(1.11,3,3)
61 ;;=Enter the name of the FILEGRAM OR EXTRACT print template that you wish to use.
62 ;;^DD(1.11,3,12)
63 ;;=Select a print template in Filegram or Extract Format.
64 ;;^DD(1.11,3,12.1)
65 ;;=S DIC("S")="I $P(^(0),U,8)="_$S($D(DIAX):2,1:1)_",$P(^(0),U,4)=$P(^DIAR(1.11,DA,0),U,2)"
66 ;;^DD(1.11,3,"DT")
67 ;;=2920514
68 ;;^DD(1.11,4,0)
69 ;;=SELECT DATE^RD^^0;5^S %DT="ET" D ^%DT S X=Y K:Y<1 X
70 ;;^DD(1.11,4,3)
71 ;;=Enter the select date of this archival activity.
72 ;;^DD(1.11,5,0)
73 ;;=ARCHIVER^P200'^VA(200,^0;6^Q
74 ;;^DD(1.11,5,3)
75 ;;=Enter the name of the user that is doing the archiving.
76 ;;^DD(1.11,6,0)
77 ;;=NUMBER OF ITEMS TO ARCHIVE^RNJ7,0^^0;7^K:+X'=X!(X>9999999)!(X<0)!(X?.E1"."1N.N) X
78 ;;^DD(1.11,6,3)
79 ;;=Type a Number between 0 and 9999999, 0 Decimal Digits
80 ;;^DD(1.11,7,0)
81 ;;=ARCHIVAL STATUS^S^1:SELECTED;2:EDITED;4:ARCHIVED (TEMPORARY);5:ARCHIVED (PERMANENT);6:UPDATED DESTINATION FILE;90:PURGED;^0;8^Q
82 ;;^DD(1.11,7,"DT")
83 ;;=2920511
84 ;;^DD(1.11,8,0)
85 ;;=SELECTOR^P200'^VA(200,^0;9^Q
86 ;;^DD(1.11,9,0)
87 ;;=PURGER^P200'^VA(200,^0;10^Q
88 ;;^DD(1.11,10,0)
89 ;;=ARCHIVE DATE^D^^0;11^S %DT="E" D ^%DT S X=Y K:Y<1 X
90 ;;^DD(1.11,11,0)
91 ;;=PURGE DATE^D^^0;12^S %DT="E" D ^%DT S X=Y K:Y<1 X
Note: See TracBrowser for help on using the repository browser.