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

AUSITE.m

Go to the documentation of this file.
AUSITE ;DSD/PDW -SET "DUZ(2)" 
 ;;93.2;AU;**0**;JUL 16, 1993
 ;
 ;REDISTRIBUTED IN OCT/88 W/CHANGES TO REQUIRE DUZ AND TO DISPLAY DUZ(2) AS THE DEFAULT
L1 K DIC G:$D(DUZ)=0!($D(DUZ)=10) ERRMSG
 I ('$D(^DIC(3,DUZ,0))),('$D(^VA(200,DUZ,0))) G ERRMSG ;DSD/PDW K7 PATCH
 I ('$D(^DIC(3,DUZ,2,0))),('$D(^VA(200,DUZ,2,0))) G ERRMSG1 ;DSD/PDW K7 PATCH
 I +DUZ(2)>0 S DIC("B")=$P(^DIC(4,DUZ(2),0),"^",1) G B1
 S DIC("B")="Site set to zero (0) for Universal"
B1 W !! D ASK
END1 S SITENUM=DUZ(2) K DIC("A"),DIC("B"),DA,DR,LKERR,LKPRINT,Y Q
CHGSITE ;
ASK S DIC="^DIC(3,DUZ,2,",DIC("A")="Enter your facility's name: ",DIC(0)="QAEM"
 I $D(^VA(200,DUZ,2,0)) S DIC="^VA(200,DUZ,2," ;DSD/PDW K7 PATCH
 D ^DIC G:X["?" ASK
 I X="^",$D(DIC("B")) W !,*7,"The default facility remains ",DIC("B"),!! Q
 S DUZ(2)=+Y
 I DUZ(2)<1 S DUZ(2)=$P(^AUTTSITE(1,0),U,1) W !,*7,"The default facility has been set to ",$P(^DIC(4,DUZ(2),0),"^",1),!!
END S SITENUM=DUZ(2) Q
 ;
SET ; ENTRY POINT TO FORCE SET OF DUZ(2) FROM APPLICATIONS*
 G L1
ERRMSG W !!,"USER not set in DUZ - use KERNEL!" Q
ERRMSG1 W !!,"No Divisions (facilities) set in USER file!" Q
ERRMSG2 W !!,"That facility is not included in your Divisions field in the USER file!" Q