Ignore:
Timestamp:
Jan 3, 2012, 11:45:29 PM (13 years ago)
Author:
George Lilly
Message:

new ohum version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/branches/ohum/p/C0CENV.m

    r1329 r1330  
    1 C0CENV ;WV/JMC - CCD/CCR Environment Check/Install Routine ; Aug 16, 2009
    2  ;;1.0;C0C;;May 19, 2009;
    3  ;
    4  ;
    5 ENV ; Does not prevent loading of the transport global.
    6  ; Environment check is done only during the install.
    7  ;
    8  N XQA,XQAMSG
    9  ;
    10  ;
    11  ; Make sure the patch name exist
    12  ;
    13  I '$D(XPDNM) D  Q
    14  . D BMES("No valid patch name exist")
    15  . S XPDQUIT=2
    16  . D EXIT
    17  ;
    18  D CHECK
    19  D EXIT
    20  Q
    21  ;
    22  ;
    23 CHECK ; Perform environment check
     1C0CENV  ;WV/JMC - CCD/CCR Environment Check/Install Routine ; Aug 16, 2009
     2        ;;1.0;C0C;;May 19, 2009;Build 1
    243        ;
    25  I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) D
    26  . D BMES("Terminal Device is not defined")
    27  . S XPDQUIT=2
    28  ;
    29  I $S('$G(DUZ):1,$D(DUZ)[0:1,$D(DUZ(0))[0:1,1:0) D
    30  . D BMES("Please log in to set local DUZ... variables")
    31  . S XPDQUIT=2
    32  ;
    33  I $P($$ACTIVE^XUSER(DUZ),"^")'=1 D
    34  . D BMES("You are not a valid user on this system")
    35  . S XPDQUIT=2
     4        ;
     5ENV     ; Does not prevent loading of the transport global.
     6        ; Environment check is done only during the install.
     7        ;
     8        N XQA,XQAMSG
     9        ;
     10        ;
     11        ; Make sure the patch name exist
     12        ;
     13        I '$D(XPDNM) D  Q
     14        . D BMES("No valid patch name exist")
     15        . S XPDQUIT=2
     16        . D EXIT
     17        ;
     18        D CHECK
     19        D EXIT
    3620        Q
    3721        ;
    3822        ;
    39 EXIT ;
     23CHECK   ; Perform environment check
     24        ;
     25        I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) D
     26        . D BMES("Terminal Device is not defined")
     27        . S XPDQUIT=2
     28        ;
     29        I $S('$G(DUZ):1,$D(DUZ)[0:1,$D(DUZ(0))[0:1,1:0) D
     30        . D BMES("Please log in to set local DUZ... variables")
     31        . S XPDQUIT=2
     32        ;
     33        I $P($$ACTIVE^XUSER(DUZ),"^")'=1 D
     34        . D BMES("You are not a valid user on this system")
     35        . S XPDQUIT=2
     36        Q
    4037        ;
    4138        ;
    42  I $G(XPDQUIT) D BMES("--- Install Environment Check FAILED ---") Q
    43  D BMES("--- Environment Check is Ok ---")
    44         ;
    45  Q
     39EXIT    ;
    4640        ;
    4741        ;
    48 PRE ;Pre-install entry point
     42        I $G(XPDQUIT) D BMES("--- Install Environment Check FAILED ---") Q
     43        D BMES("--- Environment Check is Ok ---")
     44        ;
     45        Q
     46        ;
     47        ;
     48PRE     ;Pre-install entry point
    4949        ;
    5050        ; No action needed in pre-install
     
    5454        ;
    5555        ;
    56 POST ;Post install
     56POST    ;Post install
    5757        ;
    5858        ; Check for RPMS system with V LAB file.
     
    131131        ;
    132132        ;
    133 POST6 ; Checkpoint call back entry point.
     133POST6   ; Checkpoint call back entry point.
    134134        ; Check for RPMS system and determine LAB patch level
    135135        ;  and need to load in C0C version of LA7 routines.
     
    174174        ;
    175175        ;
    176 BMES(STR) ; Write BMES^XPDUTL statements
     176BMES(STR)       ; Write BMES^XPDUTL statements
    177177        ;
    178178        D BMES^XPDUTL($$CJ^XLFSTR(STR,IOM))
Note: See TracChangeset for help on using the changeset viewer.