- MAGIPS85 ;Post init routine to queue site activity at install. ; 02/15/2007 11:00
- ;;3.0;IMAGING;**85**;16-March-2007;;Build 1039
- ;; Per VHA Directive 2004-038, this routine should not be modified.
- ;; +---------------------------------------------------------------+
- ;; | Property of the US Government. |
- ;; | No permission to copy or redistribute this software is given. |
- ;; | Use of unreleased versions of this software requires the user |
- ;; | to execute a written test agreement with the VistA Imaging |
- ;; | Development Office of the Department of Veterans Affairs, |
- ;; | telephone (301) 734-0100. |
- ;; | The Food and Drug Administration classifies this software as |
- ;; | a medical device. As such, it may not be changed in any way. |
- ;; | Modifications to this software may result in an adulterated |
- ;; | medical device under 21CFR820, the use of which is considered |
- ;; | to be a violation of US Federal Statutes. |
- ;; +---------------------------------------------------------------+
- ;;
- Q
- ;
- PRE ;
- N DIU
- ; Remove obsolete DD definitions
- S DIU=2006.56,DIU(0)="" D EN^DIU2
- ; File-root can be left.
- Q
- ;
- POST ;
- N DIU
- ; Remove file # 2006.589
- S DIU=2006.589,DIU(0)="" D EN^DIU2
- K ^MAGDICOM(2006.589)
- ;
- D ; Confirmation message
- . N CT,CNT,D,D0,D1,D2,DDATE,DG,DIC,DICR,DIW,MAGMSG,ST,XMID,XMY
- . ;
- . D GETENV^%ZOSV
- . S CNT=0
- . S CNT=CNT+1,MAGMSG(CNT)="PACKAGE INSTALL"
- . S CNT=CNT+1,MAGMSG(CNT)="SITE: "_$$KSP^XUPARAM("WHERE")
- . S CNT=CNT+1,MAGMSG(CNT)="PACKAGE: "_XPDNM
- . S CNT=CNT+1,MAGMSG(CNT)="Version: "_$$VER^XPDUTL(XPDNM)
- . S ST=$$GET1^DIQ(9.7,XPDA,11,"I")
- . S CNT=CNT+1,MAGMSG(CNT)="Start time: "_$$FMTE^XLFDT(ST)
- . S CT=$$GET1^DIQ(9.7,XPDA,17,"I") S:+CT'=CT CT=$$NOW^XLFDT()
- . S CNT=CNT+1,MAGMSG(CNT)="Completion time: "_$$FMTE^XLFDT(CT)
- . S CNT=CNT+1,MAGMSG(CNT)="Run time: "_$$FMDIFF^XLFDT(CT,ST,3)
- . S CNT=CNT+1,MAGMSG(CNT)="Environment: "_Y
- . S CNT=CNT+1,MAGMSG(CNT)="FILE COMMENT: "_$$GET1^DIQ(9.7,XPDA,6,"I")
- . S CNT=CNT+1,MAGMSG(CNT)="DATE: "_$$NOW^XLFDT()
- . S CNT=CNT+1,MAGMSG(CNT)="Installed by: "_$$GET1^DIQ(9.7,XPDA,9,"E")
- . S CNT=CNT+1,MAGMSG(CNT)="Install Name: "_$$GET1^DIQ(9.7,XPDA,.01,"E")
- . S DDATE=$$GET1^DIQ(9.7,XPDA,51,"I")
- . S CNT=CNT+1,MAGMSG(CNT)="Distribution Date: "_$$FMTE^XLFDT(DDATE)
- . S:$G(CVT)'="" CNT=CNT+1,MAGMSG(CNT)="Conversion time: "_CVT
- . S XMSUB=XPDNM_" INSTALLATION"
- . S XMID=$G(DUZ) S:'XMID XMID=.5
- . S XMY(XMID)=""
- . S XMY("G.MAG SERVER")=""
- . S:$G(MAGDUZ) XMY(MAGDUZ)=""
- . S XMSUB=$E(XMSUB,1,63)
- . D SENDMSG^XMXAPI(XMID,XMSUB,"MAGMSG",.XMY,,.XMZ,)
- . I $G(XMERR) M XMERR=^TMP("XMERR",$J) S $EC=",U13-Cannot send MailMan message,"
- . Q
- Q
- ;
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIPS85 2816 printed Feb 18, 2025@23:32:57 Page 2
- MAGIPS85 ;Post init routine to queue site activity at install. ; 02/15/2007 11:00
- +1 ;;3.0;IMAGING;**85**;16-March-2007;;Build 1039
- +2 ;; Per VHA Directive 2004-038, this routine should not be modified.
- +3 ;; +---------------------------------------------------------------+
- +4 ;; | Property of the US Government. |
- +5 ;; | No permission to copy or redistribute this software is given. |
- +6 ;; | Use of unreleased versions of this software requires the user |
- +7 ;; | to execute a written test agreement with the VistA Imaging |
- +8 ;; | Development Office of the Department of Veterans Affairs, |
- +9 ;; | telephone (301) 734-0100. |
- +10 ;; | The Food and Drug Administration classifies this software as |
- +11 ;; | a medical device. As such, it may not be changed in any way. |
- +12 ;; | Modifications to this software may result in an adulterated |
- +13 ;; | medical device under 21CFR820, the use of which is considered |
- +14 ;; | to be a violation of US Federal Statutes. |
- +15 ;; +---------------------------------------------------------------+
- +16 ;;
- +17 QUIT
- +18 ;
- PRE ;
- +1 NEW DIU
- +2 ; Remove obsolete DD definitions
- +3 SET DIU=2006.56
- SET DIU(0)=""
- DO EN^DIU2
- +4 ; File-root can be left.
- +5 QUIT
- +6 ;
- POST ;
- +1 NEW DIU
- +2 ; Remove file # 2006.589
- +3 SET DIU=2006.589
- SET DIU(0)=""
- DO EN^DIU2
- +4 KILL ^MAGDICOM(2006.589)
- +5 ;
- +6 ; Confirmation message
- Begin DoDot:1
- +7 NEW CT,CNT,D,D0,D1,D2,DDATE,DG,DIC,DICR,DIW,MAGMSG,ST,XMID,XMY
- +8 ;
- +9 DO GETENV^%ZOSV
- +10 SET CNT=0
- +11 SET CNT=CNT+1
- SET MAGMSG(CNT)="PACKAGE INSTALL"
- +12 SET CNT=CNT+1
- SET MAGMSG(CNT)="SITE: "_$$KSP^XUPARAM("WHERE")
- +13 SET CNT=CNT+1
- SET MAGMSG(CNT)="PACKAGE: "_XPDNM
- +14 SET CNT=CNT+1
- SET MAGMSG(CNT)="Version: "_$$VER^XPDUTL(XPDNM)
- +15 SET ST=$$GET1^DIQ(9.7,XPDA,11,"I")
- +16 SET CNT=CNT+1
- SET MAGMSG(CNT)="Start time: "_$$FMTE^XLFDT(ST)
- +17 SET CT=$$GET1^DIQ(9.7,XPDA,17,"I")
- if +CT'=CT
- SET CT=$$NOW^XLFDT()
- +18 SET CNT=CNT+1
- SET MAGMSG(CNT)="Completion time: "_$$FMTE^XLFDT(CT)
- +19 SET CNT=CNT+1
- SET MAGMSG(CNT)="Run time: "_$$FMDIFF^XLFDT(CT,ST,3)
- +20 SET CNT=CNT+1
- SET MAGMSG(CNT)="Environment: "_Y
- +21 SET CNT=CNT+1
- SET MAGMSG(CNT)="FILE COMMENT: "_$$GET1^DIQ(9.7,XPDA,6,"I")
- +22 SET CNT=CNT+1
- SET MAGMSG(CNT)="DATE: "_$$NOW^XLFDT()
- +23 SET CNT=CNT+1
- SET MAGMSG(CNT)="Installed by: "_$$GET1^DIQ(9.7,XPDA,9,"E")
- +24 SET CNT=CNT+1
- SET MAGMSG(CNT)="Install Name: "_$$GET1^DIQ(9.7,XPDA,.01,"E")
- +25 SET DDATE=$$GET1^DIQ(9.7,XPDA,51,"I")
- +26 SET CNT=CNT+1
- SET MAGMSG(CNT)="Distribution Date: "_$$FMTE^XLFDT(DDATE)
- +27 if $GET(CVT)'=""
- SET CNT=CNT+1
- SET MAGMSG(CNT)="Conversion time: "_CVT
- +28 SET XMSUB=XPDNM_" INSTALLATION"
- +29 SET XMID=$GET(DUZ)
- if 'XMID
- SET XMID=.5
- +30 SET XMY(XMID)=""
- +31 SET XMY("G.MAG SERVER")=""
- +32 if $GET(MAGDUZ)
- SET XMY(MAGDUZ)=""
- +33 SET XMSUB=$EXTRACT(XMSUB,1,63)
- +34 DO SENDMSG^XMXAPI(XMID,XMSUB,"MAGMSG",.XMY,,.XMZ,)
- +35 IF $GET(XMERR)
- MERGE XMERR=^TMP("XMERR",$JOB)
- SET $ECODE=",U13-Cannot send MailMan message,"
- +36 QUIT
- End DoDot:1
- +37 QUIT
- +38 ;