Changeset 636 for FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XPDIST.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/KERNEL-XU-A4A7-USC-XG-XLF-XNOA-XPD-XQ-XVIR-ZI-ZOSF-ZOSV-ZT-ZU-%Z-XIP--XQAB--XUC--XUR--ZIN--ZTED/XPDIST.m
r628 r636 1 XPDIST ;SFISC/RSD - site tracking; 06/01/2006 ;03/05/2008 2 ;;8.0;KERNEL;**66,108,185,233,350,393,486**;Jul 10, 1995;Build 5 3 ; Per VHA Directive 2004-038, this routine should not be modified. 1 XPDIST ;SFISC/RSD - site tracking; 06/01/2006 2 ;;8.0;KERNEL;**66,108,185,233,350,393**;Jul 10, 1995;Build 12 4 3 ;Returns ""=failed, XMZ=sent 5 4 ;D0=ien in file 9.7, XPY=national site tracking^address(optional) 6 5 EN(D0,XPY) ;send message 7 N %,DIFROM,XPD,XPD0,XPD1,XPD2,XPDV,XP Z,X,X1,Z,Y,XPD6,XPDTRACK6 N %,DIFROM,XPD,XPD0,XPD1,XPD2,XPDV,XPDTEXT,XPZ,XMDUZ,XMSUB,XMTEXT,XMY,XMZ,X,X1,Z,Y,XPD6 8 7 ;Get data needed 9 8 I '$D(^XPD(9.7,$G(D0),0)) D BMES^XPDUTL(" INSTALL file entry missing") Q "" … … 16 15 S XPZ(1)=$P(XPD1,U),XPZ(2)=$P(XPD1,U,3),XPZ(3)=$$FMDIFF^XLFDT(XPZ(2),XPZ(1),3),XPZ(1)=$$FMTE^XLFDT(XPZ(1)),XPZ(2)=$$FMTE^XLFDT(XPZ(2)) 17 16 D LOCAL 18 S XPDTRACK=$$TRACK19 17 D REMEDY ;p350 -REM 20 18 Q $$FORUM() 19 ; 20 ; 21 FORUM() ;send to Server on FORUM 22 K XMY,XPDTEXT ;393 23 Q:$G(XPY)="" "" 24 S:XPY XMY("S.A5CSTS@FORUM.VA.GOV")="" ;,XMY("ESSRESOURCE@MED.VA.GOV")="" 25 S:$L($P(XPY,U,2)) XMY($P(XPY,U,2))="" 26 K ^TMP($J) 27 ;Quit if not VA production primary domain 28 I $G(^XMB("NETNAME"))'[".VA.GOV" D BMES^XPDUTL(" Not a VA primary domain") Q "" 29 X ^%ZOSF("UCI") S %=^%ZOSF("PROD") 30 S:%'["," Y=$P(Y,",") 31 I Y'=% D BMES^XPDUTL(" Not a production UCI") Q "" 32 ;Message for server 33 S XPDTEXT(1,0)="PACKAGE INSTALL" 34 S XPDTEXT(2,0)="SITE: "_$G(^XMB("NETNAME")) 35 S XPDTEXT(3,0)="PACKAGE: "_XPD 36 S XPDTEXT(4,0)="VERSION: "_XPDV 37 S XPDTEXT(5,0)="Start time: "_XPZ(1) 38 S XPDTEXT(6,0)="Completion time: "_XPZ(2) 39 S XPDTEXT(7,0)="Run time: "_XPZ(3) 40 S XPDTEXT(8,0)="DATE: "_DT 41 S XPDTEXT(9,0)="Installed by: "_$P($G(^VA(200,+$P(XPD0,U,11),0)),U) 42 S XPDTEXT(10,0)="Install Name: "_$P(XPD0,U) 43 S XPDTEXT(11,0)="Distribution Date: "_$P(XPD1,U,4) 44 S XPDTEXT(12,0)=XPD2 45 S XMDUZ=$S($P(XPD0,U,11):+$P(XPD0,U,11),1:.5),XMTEXT="XPDTEXT(",XMSUB=$P(XPD0,U)_" INSTALLATION" 46 D ^XMD 47 Q "#"_$G(XMZ) 48 ; 21 49 LOCAL ;Send a message to local mail group 22 N XMY,XPDTEXT,XMTEXT,XMDUZ,XMSUB,XMZ 23 K ^TMP($J) 50 K ^TMP($J),XMY,XPDTEXT,XMTEXT 24 51 S X=$$MAILGRP^XPDUTL(XPD) Q:X="" 25 52 S XMY(X)="" D GETENV^%ZOSV … … 38 65 D ^XMD 39 66 Q 40 TRACK() ; Should VA track the installation of this patch at a national level? 41 Q:$G(XPY)="" 0 ; No - National site tracking was not requested 42 ;Quit if not VA production primary domain 43 I $G(^XMB("NETNAME"))'[".VA.GOV" D BMES^XPDUTL(" Not a VA primary domain") Q 0 44 ;X ^%ZOSF("UCI") S %=^%ZOSF("PROD") 45 ;S:%'["," Y=$P(Y,",") 46 ;I Y'=% D BMES^XPDUTL(" Not a production UCI") Q "" 47 ; 486/GMB Replaced the above 3 lines with the following line: 48 I '$$PROD^XUPROD D BMES^XPDUTL(" Not a production UCI") Q 0 49 Q 1 67 ; 50 68 REMEDY ;Send to Remedy Server - ESSRESOURCE@MED.VA.GOV *p350 -REM 51 Q:'XPDTRACK 52 N XMY,XPDTEXT,XMTEXT,XMDUZ,XMSUB,XMZ 53 K ^TMP($J) 69 K ^TMP($J),XMY,XPDTEXT,XMTEXT ;393 70 Q:$G(XPY)="" 54 71 S:XPY XMY("ESSRESOURCE@MED.VA.GOV")="" 55 72 S:$L($P(XPY,U,2)) XMY($P(XPY,U,2))="" 73 ;Quit if not VA production primary domain 74 I $G(^XMB("NETNAME"))'[".VA.GOV" D BMES^XPDUTL(" Not a VA primary domain") Q 75 X ^%ZOSF("UCI") S %=^%ZOSF("PROD") 76 S:%'["," Y=$P(Y,",") 77 I Y'=% D BMES^XPDUTL(" Not a production UCI") Q 56 78 ;Message for server (all in one string) 57 79 ;XMTEXT=Type(1),Domain(2-65),Pkg(66-95),Version(96-125), … … 68 90 D ^XMD 69 91 Q 70 FORUM() ;send to Server on FORUM71 Q:'XPDTRACK ""72 N XMY,XPDTEXT,XMTEXT,XMDUZ,XMSUB,XMZ73 K ^TMP($J)74 S:XPY XMY("S.A5CSTS@FORUM.VA.GOV")=""75 S:$L($P(XPY,U,2)) XMY($P(XPY,U,2))=""76 ;Message for server77 S XPDTEXT(1,0)="PACKAGE INSTALL"78 S XPDTEXT(2,0)="SITE: "_$G(^XMB("NETNAME"))79 S XPDTEXT(3,0)="PACKAGE: "_XPD80 S XPDTEXT(4,0)="VERSION: "_XPDV81 S XPDTEXT(5,0)="Start time: "_XPZ(1)82 S XPDTEXT(6,0)="Completion time: "_XPZ(2)83 S XPDTEXT(7,0)="Run time: "_XPZ(3)84 S XPDTEXT(8,0)="DATE: "_DT85 S XPDTEXT(9,0)="Installed by: "_$P($G(^VA(200,+$P(XPD0,U,11),0)),U)86 S XPDTEXT(10,0)="Install Name: "_$P(XPD0,U)87 S XPDTEXT(11,0)="Distribution Date: "_$P(XPD1,U,4)88 S XPDTEXT(12,0)=XPD289 S XMDUZ=$S($P(XPD0,U,11):+$P(XPD0,U,11),1:.5),XMTEXT="XPDTEXT(",XMSUB=$P(XPD0,U)_" INSTALLATION"90 D ^XMD91 Q "#"_$G(XMZ)
Note:
See TracChangeset
for help on using the changeset viewer.