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

ADED.m

Go to the documentation of this file.
ADED ; IHS/HQT/MJL - IHS-RPMS/MLQ SET KERNEL VARIABLES, WRITE KERNEL HEADER ;  [ 03/24/1999   9:04 AM ]
 ;;6.0;ADE;;APRIL 1999
 ;PARAMETER GLOBAL NAME IS SET IN MAIN GARS MENU FOR THAT DISCIPLINE
 S ADEPGLOB=ADEPGLB_"1,0)",ADEPGLOB=@ADEPGLOB
 S ADEKERNM=$P(ADEPGLOB,"^")
 S ADENMSP=$P(ADEPGLOB,"^",2)
 I ADENMSP="" W !,"Your NAMESPACE field is not set in the GENERIC PARAMETER file.  Please contact  your support person.",!! S XQUIT=1 Q
 S ADEPRVFN=$P(ADEPGLOB,"^",3)
 S ADEPRMFN=$P(ADEPGLOB,"^",4)
 S ADEY="",ADEY=$O(^DIC(9.4,"C",ADENMSP,ADEY))
 I ADEY="" W !,"Your NAMESPACE isn't recognized by the PACKAGE file.  Version not set in menu   header."  S ADEVER="  "
 E  S ADEVER=^DIC(9.4,ADEY,"VERSION"),ADEVER="VERSION "_ADEVER
 K XQUIT
 I '$D(DUZ(2)) W !,"Your SITE NAME is not set for the KERNEL.  Please contact your System Support person.",!! S XQUIT=1 Q
 S ADESITE=$P(^DIC(4,DUZ(2),0),"^")
 S ADEL2="GENERIC ACTIVITY REPORTING SYSTEM"
PRHDR ;PRINT HEADER
 D ^ADECLS
 W !,?75-$L(ADEKERNM)\2,ADEKERNM
 W !,?75-$L(ADEL2)\2,ADEL2
 W !,?75-$L(ADEVER)\2,ADEVER
 W !,?75-$L(ADESITE)\2,ADESITE
 Q
ADEX ;MAIN MENU EXIT ENTRY POINT
 K ADEPGLOB,ADEPGLB,ADEKERNM,ADENMSP,ADEPRVFN,ADEPRMFN,ADEY,ADEVER,ADESITE,ADEL2,ADEDUZ
 Q
DE ;DATA ENTRY ENTRY POINT
 ;
 S ADEL2="DATA ENTRY MENU"
 D PRHDR
 Q
DEX ;DATA ENTRY EXIT ENTRY POINT
 K ADEL2
 Q
RP ;REPORT MENU ENTRY POINT
 S ADEL2="REPORTS MENU"
 D PRHDR
 Q
RPX ;REPORT MENU EXIT ENTRY POINT
 K ADEL2
 Q