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

XUYDEV.m

Go to the documentation of this file.
  1. XUYDEV ;SFISC/KLD-Add DEVICE file #3.5 to PARAMETER ENTITY file;11/30/99
  1. ;;8.0;KERNEL;**135**;Nov 30, 1999
  1. ;
  1. N ABORT,ARER,ARERR,DA,DIC,DIR,DIE,DR,FDA,FDAIEN,HD,IEN,Y
  1. S HD="The Following Data Have Been Added To File #8989.518"
  1. S (ABORT,IEN)=0
  1. S FDA(8989.518,"?+1,",.01)="DEVICE"
  1. S FDA(8989.518,"?+1,",.02)="DEV"
  1. S FDA(8989.518,"?+1,",.03)="Device"
  1. I $D(^XTV(8989.518,3.5,0))'=1 D
  1. . S FDAIEN(1)="3.5"
  1. . D UPDATE^DIE(,"FDA","FDAIEN","ARER")
  1. E D
  1. . D UPDATE^DIE(,"FDA",,"ARER")
  1. W:$G(IOF)'="" @IOF
  1. I $D(ARER) D Q:ABORT
  1. . S ABORT=1
  1. . W $C(7)
  1. . W:$G(IOF)'="" @IOF
  1. . W !!,"An ERROR has occured",!
  1. . W $P(ARER("DIERR",1),"^")," - "
  1. . W $P(ARER("DIERR",1,"TEXT",1),"^")
  1. S IEN=$$FIND1^DIC(8989.518,,,"DEVICE",,,"ARERR")
  1. I IEN D Q:ABORT
  1. . W $C(7)
  1. . W !!!,HD
  1. . W !,$$REPEAT^XLFSTR("=",$L(HD))
  1. . W !,$$GET1^DIQ(8989.518,IEN,.01,"E")
  1. . W !,$$GET1^DIQ(8989.518,IEN,.02,"E")
  1. . W !,$$GET1^DIQ(8989.518,IEN,.03,"E"),!!
  1. . N DIR
  1. . S DIR(0)="E" D ^DIR
  1. . S ABORT=1
  1. Q