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

DGYMODS.m

Go to the documentation of this file.
  1. DGYMODS ;ALB/MLI - Turn off ODS software ; 3/28/95
  1. ;;5.3;Registration;**55,1015**;Aug 13, 1993;Build 21
  1. ;
  1. ; This routine will turn off the ODS software and unschedule
  1. ; the ODS Background Job option.
  1. ;
  1. EN ; entry point (or call from top)
  1. I '$D(^A1B2(11500.5,1,0)) D Q ; ods software not set-up
  1. . W !,"The ODS PARAMETER file was not set up on your system. No changes made."
  1. S DA=1,DR=".02////0",DIE="^A1B2(11500.5," D ^DIE
  1. S DGVER=$$VERSION^XPDUTL("XU")
  1. S DIC="^DIC(19,",DIC(0)="QMZ",X="A1B2 BACKGROUND JOB" D ^DIC S (DGIEN,DA)=+Y
  1. I DA'>0 G ENQ ; background job not in option file
  1. I DGVER<8 S DR="200///@;201///@;202///@;203///@",DIE=DIC D ^DIE
  1. I DGVER'<8 S DIK="^DIC(19.2," F DA=0:0 S DA=$O(^DIC(19.2,"B",DGIEN,DA)) Q:'DA D ^DIK
  1. ENQ W !,"The ODS software has now been turned off at your facility"
  1. K DA,DGIEN,DGVER,DIC,DIE,DIK,DR,X,Y
  1. Q