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

SDEC745P.m

Go to the documentation of this file.
  1. SDEC745P ;ALB/CLT - PATCH 745 POST INSTALL ROUTINE ;Jun 10, 2020@1:44
  1. ;;5.3;SCHEDULING;**745**;AUG 13, 1993;Build 40
  1. ;
  1. FIND ;FIND THE IEN FOR "VS GUI NATIONAL"
  1. N SDECDA,SDECDA1,SDECLNK
  1. W !!?3,"Updating SDEC SETTINGS file (#409.98)",!!
  1. S SDECDA=0,SDECDA=$O(^SDEC(409.98,"B","VS GUI NATIONAL",SDECDA)) G:$G(SDECDA)="" NOFIND
  1. D VERSION ;update GUI version number and date
  1. S SDECDA1=0,SDECDA1=$O(^SDEC(409.98,1,1,"B","OIT Helpdesk - (855) 673-4357",SDECDA1))
  1. I $G(SDECDA1)="" G XIT ; did not find cross-reference
  1. D RMOVE,ADD G XIT
  1. RMOVE ;REMOVE OLD ENTRY
  1. K ^SDEC(409.98,SDECDA,1,"B",$E($P(^SDEC(409.98,SDECDA,1,SDECDA1,0),U,1),1,30),SDECDA1)
  1. Q
  1. ADD ;ADD UPDATED ENTRY
  1. S SDECLNK="VA Enterprise Service Desk (ESD) (855) 673-4357"
  1. S $P(^SDEC(409.98,SDECDA,1,SDECDA1,0),U,1)=SDECLNK
  1. S ^SDEC(409.98,SDECDA,1,"B",$E(SDECLNK,1,30),SDECDA1)="" ;cross-reference is first 30 characters
  1. Q
  1. VERSION ;SET THE NEW VERSION UPDATE IN SDEC SETTING FILE #409.98 TO 1.7.1
  1. S DA=SDECDA,DIE=409.98,DR="2///1.7.1 R1;3///3200623" D ^DIE ;update VS GUI NATIONAL
  1. K DIE,DR,DA
  1. S SDECDA2=0,SDECDA2=$O(^SDEC(409.98,"B","VS GUI LOCAL",SDECDA2)) Q:$G(SDECDA2)="" ;get DA for the VS GUI LOCAL
  1. S DA=SDECDA2,DIE=409.98,DR="2///1.7.1 R1;3///3200623" D ^DIE ;update VS GUI LOCAL
  1. K DIE,DR,DA
  1. Q
  1. NOFIND ;"VS GUI NATIONAL" NOT FOUND
  1. W !!?3,"VS GUI NATIONAL not found in the SDEC SETTINGS file (#409.98)"
  1. XIT ;EXIT ROUTINE
  1. ;
  1. Q