update to RPMS labs install
This commit is contained in:
parent
1dbbb222bf
commit
e44283a4ca
37
p/C0CENV.m
37
p/C0CENV.m
|
@ -1,4 +1,4 @@
|
|||
C0CENV ;WV/JMC - CCD/CCR Environment Check/Install Routine; July 21, 2009
|
||||
C0CENV ;WV/JMC - CCD/CCR Environment Check/Install Routine ; Aug 16, 2009
|
||||
;;1.0;C0C;;May 19, 2009;
|
||||
;
|
||||
;
|
||||
|
@ -156,44 +156,19 @@ POST6 ; Checkpoint call back entry point.
|
|||
;
|
||||
; Load and rename C0CQRY1 to LA7QRY1 if LA*5.2*68 not installed.
|
||||
I '$$PATCH^XPDUTL("LA*5.2*68") D
|
||||
. S MSG="This system missing LAB patch LA*5.2*68"
|
||||
. D BMES(MSG)
|
||||
. S MSG="Renaming routine C0CQRY1 to LA7QRY1"
|
||||
. D BMES(MSG)
|
||||
. D LOAD("C0CQRY1")
|
||||
. D SAVE("C0CQYR1","LA7QRY1")
|
||||
. D SAVE("C0CQRY1","LA7QRY1")
|
||||
;
|
||||
Q
|
||||
;
|
||||
;
|
||||
POST7 ; Checkpoint call back entry point.
|
||||
; Task setting the data in the indexes.
|
||||
;
|
||||
N MSG,ZTDESC,ZTDTH,ZTIO,ZTSK,ZTRTN,ZTSAVE
|
||||
;
|
||||
; If TaskMan not running then peform post-intall directly (interactively)
|
||||
I '$$TM^%ZTLOAD D Q
|
||||
. S MSG="TaskMan is not running"
|
||||
. D BMES(MSG)
|
||||
. S MSG="Will run indexing interactively"
|
||||
. D BMES(MSG)
|
||||
. D REINDEX^C0CLA7DD
|
||||
;
|
||||
; If KIDS install has been tasked then run post-install during this task.
|
||||
I $D(ZTQUEUED) D REINDEX^C0CLA7DD Q
|
||||
;
|
||||
S MSG="Tasking setting data into new V LAB indexes"
|
||||
D BMES(MSG)
|
||||
;
|
||||
S ZTRTN="REINDEX^C0CLA7DD",ZTDESC="C0C post-install - V LAB x-refs indexing"
|
||||
S ZTIO="",ZTDTH=$H,ZTSAVE("XP*")=""
|
||||
D ^%ZTLOAD
|
||||
;
|
||||
I ZTSK>0 D
|
||||
. S MSG="Task "_ZTSK_" tasked to set data into ALR* cross-references to V LAB file."
|
||||
. D BMES(MSG)
|
||||
E D
|
||||
. S MSG="Tasking of indexing of V LAB file failed"
|
||||
. D BMES(MSG)
|
||||
;
|
||||
D REINDEX^C0CLA7DD
|
||||
;
|
||||
Q
|
||||
;
|
||||
|
@ -215,6 +190,6 @@ LOAD(X) ; load routine X
|
|||
;
|
||||
SAVE(OLD,NEW) ; restore routine X
|
||||
N %,DIE,X,XCM,XCN,XCS
|
||||
S DIE="^TMP($J,"_OLD_",",XCN=0,X=NEW
|
||||
S DIE="^TMP($J,"""_OLD_""",",XCN=0,X=NEW
|
||||
X ^%ZOSF("SAVE")
|
||||
Q
|
||||
|
|
69
p/C0CLA7DD.m
69
p/C0CLA7DD.m
|
@ -1,4 +1,4 @@
|
|||
C0CLA7DD ;WV/JMC - CCD/CCR Post Install DD X-Ref Setup Routine; ;6 Jul 2009
|
||||
C0CLA7DD ;WV/JMC - CCD/CCR Post Install DD X-Ref Setup Routine ; Aug 31, 2009
|
||||
;;1.0;C0C;;May 19, 2009;
|
||||
;
|
||||
; Tasked by C0C post-install routine C0CENV to create C0C cross-references on V LAB file.
|
||||
|
@ -205,59 +205,39 @@ ALR5 ; Installation of ALR5 cross-reference
|
|||
REINDEX ; Set data into indexes for current entries.
|
||||
;
|
||||
;
|
||||
N %,C0CNT,DA,DIK,MSG
|
||||
N C0CHLOG,DA,DIK,MSG
|
||||
;
|
||||
S C0CHLOG("START")=$H
|
||||
S MSG="Starting indexing of ALR1, ALR2, ALR4, ALR5 indexes - "_$$HTE^XLFDT(C0CHLOG("START"),"1Z")
|
||||
D BMES(MSG),SENDXQA(MSG)
|
||||
;
|
||||
S (C0CNT,DA)=0
|
||||
S DIK="^AUPNVLAB("
|
||||
S DIK(1)=".02^ALR1^ALR2^ALR4^ALR5"
|
||||
D ENALL^DIK
|
||||
;
|
||||
; Create checkpoint
|
||||
S %=$$NEWCP^XPDUTL("RPMS7","","")
|
||||
S C0CHLOG("END")=$H
|
||||
S MSG="Finished indexing of ALR1, ALR2, ALR4, ALR5 indexes - "_$$HTE^XLFDT(C0CHLOG("END"),"1Z")
|
||||
D BMES(MSG),SENDXQA(MSG)
|
||||
;
|
||||
; Retrieve checkpoint value if previously saved
|
||||
S %=$$PARCP^XPDUTL("RPMS7","")
|
||||
I %'="" S DA=%
|
||||
;
|
||||
S MSG="Starting indexing of ALR1, ALR2, ALR4, ALR5 indexes"
|
||||
S MSG="Elapsed Time: "_$$HDIFF^XLFDT(C0CHLOG("END"),C0CHLOG("START"),3)
|
||||
D BMES(MSG)
|
||||
;
|
||||
I DA'="END" D
|
||||
. F S DA=$O(^AUPNVLAB(DA)) Q:DA<1 D
|
||||
. . D EN1^DIK
|
||||
. . S C0CNT=C0CNT+1
|
||||
. . I (C0CNT#100)=0 S %=$$UPCP^XPDUTL("RPMS7",DA)
|
||||
S %=$$UPCP^XPDUTL("RPMS7","END")
|
||||
;
|
||||
S MSG="Finished indexing of ALR1, ALR2, ALR4, ALR5 indexes"
|
||||
D BMES(MSG)
|
||||
S C0CHLOG("START")=$H
|
||||
S MSG="Starting indexing of ALR3 index - "_$$HTE^XLFDT(C0CHLOG("START"),"1Z")
|
||||
D BMES(MSG),SENDXQA(MSG)
|
||||
;
|
||||
K DA,DIK
|
||||
;
|
||||
S (C0CNT,DA)=0
|
||||
S DIK="^AUPNVLAB("
|
||||
S DIK(1)="1113^ALR3"
|
||||
D ENALL^DIK
|
||||
;
|
||||
; Create checkpoint
|
||||
S %=$$NEWCP^XPDUTL("RPMS8","","")
|
||||
S C0CHLOG("END")=$H
|
||||
S MSG="Finished indexing of ALR3 index - "_$$HTE^XLFDT(C0CHLOG("END"),"1Z")
|
||||
D BMES(MSG),SENDXQA(MSG)
|
||||
;
|
||||
; Retrieve checkpoint value if previously saved
|
||||
S %=$$PARCP^XPDUTL("RPMS8","")
|
||||
I %'="" S DA=%
|
||||
;
|
||||
S MSG="Starting indexing of ALR3 index"
|
||||
S MSG="Elapsed Time: "_$$HDIFF^XLFDT(C0CHLOG("END"),C0CHLOG("START"),3)
|
||||
D BMES(MSG)
|
||||
;
|
||||
I DA'="END" D
|
||||
. F S DA=$O(^AUPNVLAB(DA)) Q:DA<1 D
|
||||
. . D EN1^DIK
|
||||
. . S C0CNT=C0CNT+1
|
||||
. . I (C0CNT#100)=0 S %=$$UPCP^XPDUTL("RPMS8",DA)
|
||||
S %=$$UPCP^XPDUTL("RPMS8","END")
|
||||
;
|
||||
S MSG="Finished indexing of ALR3 index"
|
||||
D BMES(MSG)
|
||||
;
|
||||
;
|
||||
Q
|
||||
;
|
||||
;
|
||||
|
@ -266,3 +246,14 @@ BMES(STR) ; Write BMES^XPDUTL statements
|
|||
D BMES^XPDUTL($$CJ^XLFSTR(STR,IOM))
|
||||
;
|
||||
Q
|
||||
;
|
||||
;
|
||||
SENDXQA(MSG) ; Send alert for reindex status
|
||||
;
|
||||
N XQA,XQAMSG
|
||||
;
|
||||
S XQA(DUZ)=""
|
||||
S XQAMSG=MSG
|
||||
D SETUP^XQALERT
|
||||
;
|
||||
Q
|
||||
|
|
Loading…
Reference in New Issue