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

PSXPOST.m

Go to the documentation of this file.
  1. PSXPOST ;BIR/BAB-Post Initialization Routine ;[ 04/08/97 2:06 PM ]
  1. ;;2.0;CMOP;;11 Apr 97
  1. S XQABT4=$H
  1. G:^XMB("NETNAME")?1"CMOP-".E HOST
  1. G:^XMB("NETNAME")'?1"CMOP-".E REMOTE
  1. Q
  1. HOST F FILE=552,552.1,552.2,552.3,552.4,552.5,553,553.1,554,555 S ^DD(FILE,0,"VR")="2.0"
  1. ;Setup CMOP INTERFACE and CMOP OPERATIONS file entry
  1. S PSX=^XMB("NETNAME")
  1. S CMOP=$S($G(PSX)["-L":"LEAVENWORTH",$G(PSX)["-W":"WEST LA",$G(PSX)["-B":"BEDFORD",$G(PSX)["-D":"DALLAS",$G(PSX)["-M":"MURFREESBORO",$G(PSX)["-H":"HINES",$G(PSX)["-T":"TEST",1:"UNKNOWN")
  1. I $D(^PSX(553,1,0)) G OP
  1. S ^PSX(553,1,0)=CMOP_"^1^^9999^5^10^^10000^1^1000"
  1. S ^PSX(553,1,"F")="S"
  1. S ^PSX(553,1,"P")="S",^PSX(553,1,"S")="S"
  1. S ^PSX(553,1,"T")="6^3^30^60"
  1. S ^PSX(553,1,"X",0)="^553.01DA^^"
  1. S ^PSX(553,"B",CMOP,1)=""
  1. OP ;
  1. I $D(^PSX(554,1,0)) G EXIT
  1. S ^PSX(554,0)="CMOP OPERATIONS^554^1^1",^PSX(554,1,0)=CMOP_"^1^1"
  1. S ^PSX(554,"B",CMOP,1)=""
  1. G EXIT
  1. REMOTE F FILE=550,550.1,550.2 S ^DD(FILE,0,"VR")="2.0"
  1. SYS ;Setup CMOP System entry for new sites
  1. G:$O(^PSX(550,0)) EXIT
  1. S DOM=0 S DOM=$O(^DIC(4.2,"B",^TMP("PSXCMOP",$J),DOM))
  1. S PSX1=^TMP("PSXCMOP",$J)
  1. I +$G(DOM)=0 D BMES^XPDUTL("Your Kernel Site Parameters File is missing the entry for the your CMOP mailman domain! ")
  1. I +$G(DOM)=0 D BMES^XPDUTL("Please contact the Birmingham CIO Field Office!") S XPDABORT=2 Q
  1. S PSX=$S($G(PSX1)["-L":"LEAVENWORTH",$G(PSX1)["-B":"BEDFORD",$G(PSX1)["-W":"WEST LA",$G(PSX1)["-D":"DALLAS",$G(PSX1)["-M":"MURFREESBORO",$G(PSX1)["-H":"HINES",$G(PSX1)["-T":"TEST",1:"UNKNOWN")
  1. I PSX["UNK" D BMES^XPDUTL("Unable to determine CMOP setup, contact the Birmingham ISC for assistance.") S XPDABORT=2 G EXIT
  1. S ^PSX(550,0)="CMOP SYSTEM^550I^1^1"
  1. S ^PSX(550,1,0)=PSX_"^I^H^"_+DOM
  1. S ^PSX(550,"B",PSX,1)=""
  1. EXIT ; Check resource device
  1. I '$O(^%ZISL(3.54,"B","PSX","")) D BMES^XPDUTL("You do not have the PSX Resource device set up.")
  1. I D BMES^XPDUTL("Please read the CMOP Pre-Installation instructions for proper setup.")
  1. ; Check Mail Group
  1. MAIL I '$O(^XMB(3.8,"B","CMOP MANAGERS","")) D BMES^XPDUTL("The Mail Group CMOP MANAGERS must be set up and assigned at least one active user.")
  1. K CMOP,DA,DIK,DOM,FILE,X,PSX,PSX1,^TMP("PSXCMOP"),^TMP("PSXDIC"),^TMP("PSXDD"),^TMP("PSXPS"),ZX
  1. D BMES^XPDUTL("Initialization complete!!")
  1. K X
  1. Q