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

DINZMGR1.m

Go to the documentation of this file.
  1. DINZMGR1 ;SFISC/MKO-TO SET UP THE MGR ACCOUNT FOR THE SYSTEM ;3:02 PM 1 Oct 1998
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. INTRO ;Print introductory text
  1. W !!!,"HELLO!"
  1. W !!,"I exist to assist you in correctly initializing the manager account",!,"or to update the current account."
  1. W !!,"I'm going to do the following:"
  1. W !!?3,"1. File the routines DIDT, DIDTC, and DIRCR as %DT, %DTC, and",!?7,"%RCR, respectively."
  1. W !!?3,"2. File the routines DIIS and DIISS as %ZIS and %ZISS, respectively."
  1. W !!?3,"3. Set nodes in the %ZOSF global. This global contains"
  1. W !?7,"MUMPS operating system-specific code required by FileMan's"
  1. W !?7,"screen-oriented utilities."
  1. W !!,?3,"4. Save a %ZOSV routine (and possibly a %ZOSV1 routine) specific",!?7,"to your MUMPS operating system."
  1. W !!,"Note that on some MUMPS systems, executing some of the ^%ZOSF nodes"
  1. W !,"causes ^XUTL global nodes to be set in the production account."
  1. Q
  1. ;
  1. OS ;Prompt for operating system
  1. N I,J
  1. S Y=0
  1. I $D(^%ZOSF("OS"))#2 D
  1. . S X1=$P(^%ZOSF("OS"),U),Y=$P(^("OS"),U,2)
  1. . ;S:Y=7 X1="M\SQL",Y=18
  1. . I X1=""!'Y S (X1,Y)="" Q
  1. . W !!,"I think you are using "_X1
  1. . S Y=$S(Y=1:1,Y=13:2,Y=18:3,Y=2:4,Y=16:5,Y=8:6,Y=9:7,Y=17:8,1:0)
  1. ;
  1. OS1 W !!,"Which MUMPS system are you using?",!
  1. F I=1:1 S J=$P($T(@I),";;",2,999) Q:J="" D
  1. . W !
  1. . W:$P(J,";",2)]"" ?3,$P(J,";",2)
  1. . W ?5,I_" = "_$P(J,";")
  1. W !!?9,"* No longer supported."
  1. W !!,"MUMPS System: " W:Y Y,"// " R X:300 S:X="" X=Y
  1. I X[U!'$T S DIQUIT=1 Q
  1. ;
  1. I X?1."?" D G OS1
  1. . W !!?5,"If the MUMPS system you are using is not listed, you cannot use"
  1. . W !?5,"this utility. You must manually file DIDT, DIDTC, and DIRCR as"
  1. . W !?5,"%DT, %DTC, and %RCR, respectively."
  1. . W !!?5,"In addition, if you wish to use FileMan's screen-oriented utilities,"
  1. . W !?5,"you must file %ZIS and %ZISS routines (you can use DIIS and DIISS"
  1. . W !?5,"as starting points), and you must set the %ZOSF nodes manually."
  1. . W !?5,"Please refer the VA FileMan Programmer Manual for more information."
  1. ;
  1. S J=$P($T(@X),";;",2,999)
  1. I $T(@X)="" D G OS1
  1. . W !!?5,$C(7)_"Invalid response. Enter a number between 1 and 9."
  1. I $P(J,";",2)="*" D G OS1
  1. . W !!?5,$C(7)_$P(J,";")_" is no longer supported."
  1. ;
  1. S DIOS=+X
  1. Q
  1. ;
  1. 1 ;;M/11;*
  1. 2 ;;M/SQL-PDP;*
  1. 3 ;;CACHE/OpenM
  1. 4 ;;DSM-4;*
  1. 5 ;;DSM for OpenVMS
  1. 6 ;;MSM
  1. 7 ;;DTM-PC
  1. 8 ;;GT.M(VAX);*