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

LRIPOS4.m

Go to the documentation of this file.
  1. LRIPOS4 ;DALISC/FSH - LR POST INIT CONTINUED
  1. ;;5.2;LR;;NOV 01, 1997
  1. ;
  1. ;;5.2;LAB SERVICE;;Sep 27, 1994
  1. ;;LAB SERVICE;;
  1. EN ; Rename 'LR' routines that were distributed on the tape to their
  1. ; proper 'SR' namespace
  1. W !!,"Moving exported 'LR' routines into Surgery name space.",!!
  1. S X="LROSPLG" X ^%ZOSF("TEST")
  1. I '$T W !!?5,"Can't find LROSPLG routine - renaming ABORTED ",!,"CONTACT YOUR ISC ",! G LA
  1. S A="LR",B="SR"
  1. F J="OSPLG","OSPLG1","OSPLG2" X "ZL @(A_J) W !,""Loading "",A_J ZS @(B_J) W ?20,""Saving as "",B_J"
  1. W !!,"All routines restored ",!!
  1. ;
  1. LA ;Update the AUTOMATED LAB INSTRUMENTS package file entry to the
  1. ;correct version number, if the LA init was not run
  1. N LA94,LADA,LADATE,X,Y
  1. S LA94=$O(^DIC(9.4,"C","LA",0))
  1. I 'LA94 D QUIT
  1. . W !!,?5,"*** Could not find 'AUTOMATED LAB INSTRUMENTS' in your ***"
  1. . W !,?5,"*** package file, using the 'LA' namespace. You will ***"
  1. . W !,?5,"*** need to manually update your PACKAGE file with the ***"
  1. . W !,?5,"*** correct version number (5.2). ***"
  1. I $O(^DIC(9.4,"C","LA",LA94)) D QUIT
  1. . W !!,?5,"*** Found two entries in your PACKAGE file with the ***"
  1. . W !,?5,"*** namespace 'LA'. You will need to update the ***"
  1. . W !,?5,"*** correct AUTOMATED LAB INSTRUMENTS entry with ***"
  1. . W !,?5,"*** the current version number (5.2). ***"
  1. Q:$G(^DIC(9.4,LA94,"VERSION"))="5.2"
  1. W !!,?5,"Updating your AUTOMATED LAB INSTRUMENTS entry in the package"
  1. W !,?5,"file with the correct current version number (5.2)..."
  1. S X=$P($T(+2),";",6) ;get date distributed
  1. D ^%DT
  1. Q:'Y
  1. S LADATE=Y
  1. K DD,DO,DIC
  1. S DIC(0)="L",DLAYGO=9.4,DA(1)=LA94,DIC="^DIC(9.4,"_DA(1)_",22,"
  1. S DIC("P")=$P(^DD(9.4,22,0),"^",2)
  1. S X="5.2",DINUM=X
  1. D FILE^DICN ;add 5.2 version to multiple in PACKAGE file
  1. S LADA=+Y
  1. S DIE="^DIC(9.4,",DA=LA94,DR="13////5.2"
  1. D ^DIE ;update CURRENT VERSION
  1. DIE K DIC,DIE,DA,DR
  1. S DA(1)=LA94,DA=LADA
  1. S DIE="^DIC(9.4,"_DA(1)_",22,"
  1. S DR="1////"_LADATE_";2////"_DT
  1. D ^DIE ;update DATE DISTRIBUTED and DATE INSTALLED AT THIS SITE
  1. QUIT