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

SR84UTL.m

Go to the documentation of this file.
  1. SR84UTL ;BIR/ADM-Utility Routine for SR*3*84 ; [ 12/02/98 10:58 AM ]
  1. ;;3.0; Surgery ;**84**;24 Jun 93
  1. ;
  1. ; References to fields 20 and 22 of file 19 are supported by DBIA #2509
  1. ;
  1. ; environmental check to confirm that XU*8*87 is installed
  1. I '$$PATCH^XPDUTL("XU*8.0*87") D BMES^XPDUTL("Patch XU*8*87 must be installed before installing this patch!") S XPDQUIT=2 Q
  1. I $S($D(DUZ)[0:1,$D(DUZ(0))[0:1,'DUZ:1,1:0) D BMES^XPDUTL(">> DUZ and DUZ(0) must be defined as an active user to install.") S XPDQUIT=2 Q
  1. I $S('$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) D BMES^XPDUTL("Patch installation requires PROGRAMMER ACCESS.") S XPDQUIT=2
  1. Q
  1. POST ; update XQUIT EXECUTABLE field in OPTION file for Surgery options
  1. N DA,DIE,DR,SR19,SRACT,SROPT,SRXQ
  1. S SR19="SR" F S SR19=$O(^DIC(19,"B",SR19)) Q:$E(SR19,1,2)'="SR" S SROPT=0 F S SROPT=$O(^DIC(19,"B",SR19,SROPT)) Q:'SROPT D
  1. .S SRACT=$$GET1^DIQ(19,SROPT,20) I SRACT'["SROVAR" Q
  1. .D MES^XPDUTL("Updating option "_SR19)
  1. .K DA,DIE,DR S DA=SROPT,DIE=19,DR="22////Q" D ^DIE
  1. .S SRXQ=$$GET1^DIQ(19,SROPT,22) I SRXQ'="Q" D MES^XPDUTL(" >>> "_SR19_" update FAILED.")
  1. Q