Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ACGSREST

ACGSREST.m

Go to the documentation of this file.
ACGSREST ;IHS/OIRM/DSD/THL,AEF - RESTORES DATA GLOBALS FROM AREA SAVES TO CREATE HQ DATABASE; [ 03/27/2000   2:22 PM ]
 ;;2.0t1;CONTRACT INFORMATION SYSTEM;;FEB 16, 2000
 ;;RESTORES DATA GLOBALS FROM AREA SAVES TO CREATE HQ DATABASE
EN D ^XBKVAR
 D EN1
EXIT K %DEV,%TAP,%IN,%DFLT,%SEL,%ANS,%FN,%TIME,%CMT
 Q
EN1 F ACG=102,161,235,239,241:1:249,285 S %FN="/usr3/cis/acg"_ACG_".asc" D RESTORE
 D REINDEX
 D WAIT^DICD,EN^ACGSTEMP
 Q
RESTORE F ACGI=1:1:4 S (IOP,ION)="HOST FILE SERVER #"_ACGI,%IS("IOPAR")="("""_%FN_""":""R"")" D ^%ZIS Q:'POP
 Q:POP
 S %TAP=0,%IN=1,%DFLT="HFS",%SEL=0,%ANS="Y",%DEV=IO
 U IO R %TIME:999,%CMT:999
 I %TIME="" D DONE Q
START D START^ACGSGR
DONE D ^%ZISC
 Q
REINDEX ;EP;TO REINDEX SELECTED FIELDS AFTER IMPORT
 F X="B","C","E","F","G","K","L","M","N","O","P","Q","R","S","T","V","W","X","Y","D" K ^ACGS(X)
 F ACGI=1:1 S DIK(1)=$T(@ACGI) Q:DIK(1)=""  S DIK(1)=$P(DIK(1),";;",2) Q:DIK(1)=""  D
 .S DIK="^ACGS("
 .D ENALL^DIK
 .K DIK,DA
 Q
1 ;;2^B
2 ;;.03^C
3 ;;30^E
4 ;;16^F
5 ;;15^G
6 ;;19^K
7 ;;121^L
8 ;;11^M
9 ;;4^N
10 ;;5^O
11 ;;10^P
12 ;;23^R
13 ;;1^S
14 ;;24^T
15 ;;25^V
16 ;;27^W
17 ;;154^X
18 ;;155^Y
19 ;;103^D
20 ;;1099^Q