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

PRSXP83.m

Go to the documentation of this file.
  1. PRSXP83 ;WCIOFO/MGD-DELETE PP 03-06 ;04/16/2003
  1. ;;4.0;PAID;**83**;Sep 21, 1995
  1. ;
  1. Q
  1. ;
  1. ; This program will delete PP 03-06 from the PAID PAYRUN DATA (#459)
  1. ; file so that Central PAID can re-send the corrected download.
  1. ; A message will be sent to Pam McClaran and Matt Dill to help with
  1. ; the tracking of which sites have installed the patch and have deleted
  1. ; PP 03-06.
  1. ;
  1. ; For more details see the patch description on FORUM.
  1. ;
  1. START ; Main Driver
  1. ;
  1. K ^TMP($J),TMP
  1. N DA,DIK,MESS1,STANUM,TIME,TMP,U,XMSUB
  1. S U="^",DA=0
  1. D NOW^%DTC
  1. S Y=%
  1. D DD^%DT
  1. S TIME=Y
  1. W !!,"Post install routine PRSXP83 beginning at ",TIME_"."
  1. ;
  1. ; Get Station Number
  1. ;
  1. S STANUM=$$KSP^XUPARAM("INST")_","
  1. S STANUM=$$GET1^DIQ(4,STANUM,99)
  1. S MESS1="Station: "_STANUM_" - "
  1. ;
  1. S DA=$O(^PRST(459,"B","03-06",DA))
  1. ;
  1. ; Check to see if the entry does not exist
  1. ;
  1. I DA'>0 D
  1. . S ^TMP($J,"MGD",1)=MESS1_"PP 03-06 Not Found."
  1. . W !!,MESS1_"PP 03-06 Not Found."
  1. . W !,"Please contact NVS at 888-596-4357."
  1. . S XMSUB="STATION "_STANUM_" PP 03-06 Not Found."
  1. ;
  1. ; Check to see if the entry does exist and delete it
  1. ;
  1. I DA>0 D
  1. . I '$D(^PRST(459,DA,0)) D
  1. . . S ^TMP($J,"MGD",1)=MESS1_"PP 03-06 Not Found."
  1. . . W !!,MESS1_"PP 03-06 Not Found."
  1. . . W !,"Please contact NVS at 888-596-4357."
  1. . . S XMSUB="STATION "_STANUM_" PP 03-06 Not Found."
  1. . I $D(^PRST(459,DA,0)) D
  1. . . S DIK="^PRST(459,"
  1. . . D ^DIK
  1. . . S ^TMP($J,"MGD",1)=MESS1_"PP 03-06 Deleted at "_TIME_"."
  1. . . W !!,MESS1_"PP 03-06 Deleted at "_TIME_"."
  1. . . S XMSUB="STATION "_STANUM_" PP 03-06 Deleted at "_TIME_"."
  1. ;
  1. XMT ; Send status via mail message
  1. ;
  1. I $D(^TMP($J,"MGD")) D
  1. . N DIFROM,XMDUZ,XMTEXT,XMY
  1. . S XMDUZ=.5
  1. . S XMTEXT="^TMP($J,""MGD"","
  1. . S XMY("MATT.DILL@DOMAIN.EXT")="",XMY(DUZ)=""
  1. . S XMY("DILL.MATT@DOMAIN.EXT")=""
  1. . S XMY("PAM.MCCLARAN@DOMAIN.EXT")=""
  1. . S XMY("MCCLARAN.PAM@DOMAIN.EXT")=""
  1. . D ^XMD
  1. ;
  1. K ^TMP($J),Y,%
  1. W !!,"Post install routine PRSXP83 completed.",!
  1. Q