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

LAIPRE.m

Go to the documentation of this file.
  1. LAIPRE ;DALISC/JRR - AUTO INSTRUMENTS PRE INIT ENVIRONMENT CHECK
  1. ;;5.2;LA;;NOV 01, 1997
  1. ;This routine checks to make sure that the programmer running
  1. ;the inits has the proper variables defined, otherwise, it
  1. ;signals the init to quit by killing the variable DIFQ.
  1. ;It is called from LAINIT only.
  1. EN ;
  1. I $S('$D(DUZ):1,'$D(^VA(200,+DUZ)):1,'$D(IO):1,1:0) D
  1. . W !!?10,"Your DUZ is undefined, you should log in through"
  1. . W !?10,"Kernel, or DO ^XUP before continuing!"
  1. . K DIFQ
  1. I $S('$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) D
  1. . W !!?10,"Your programmer access code is not equal to"
  1. . W !?10,"the '@' character. Please set it or log in"
  1. . W !?10,"through Kernel, or DO ^XUP to set it correctly."
  1. . K DIFQ
  1. I '$D(DIFQ) W !!?10,"Init will not proceed.",!!
  1. E W !!?10,"Pre-Init Environment Check Completed...",!!
  1. QUIT