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

A1B2PST.m

Go to the documentation of this file.
  1. A1B2PST ;ALB/MJK - ODS Post Init ; 14 JAN 1991
  1. ;;Version 1.55 (local for MAS v5 sites);;
  1. ;
  1. EN ; -- entry point to run post-init
  1. D DEL
  1. Q
  1. ;
  1. MG ; -- add confirmation mail group
  1. S DIC="^XMB(3.8,",DIC(0)="L",DIC("DR")="4////PU;5////"_DUZ,X="ODS CONFIRMATION" D ^DIC K DIC
  1. G MGQ:'$P(Y,U,3)
  1. S ^XMB(3.8,+Y,2,0)="^^2^2^2900625^"
  1. S ^XMB(3.8,+Y,2,1,0)="This mail group will receive confirmation messages from ODS National Rollup"
  1. S ^XMB(3.8,+Y,2,2,0)="Database System."
  1. W !!,">>> New 'ODS CONFIRMATION' confirmation mail group added..."
  1. MGQ Q
  1. ;
  1. ;
  1. DIEZ ; -- compile input templates
  1. ;
  1. W !!,">>> Will now compile three DG and SD input templates affected"
  1. W !," by this package (3 templates)..."
  1. K A1B2LINE S U="^",$P(A1B2LINE,"=",81)="",A1B2MAX=^DD("ROU")
  1. F A1B2X="DGADM","DGADMASIH","SDM1" S Y=+$O(^DIE("B",A1B2X,0)) I $D(^DIE(Y,"ROUOLD")),^("ROUOLD")]"",$D(^(0)) S X=$P(^("ROUOLD"),"^"),DMAX=A1B2MAX D EN^DIEZ W !!,A1B2LINE
  1. W !!,*7,">>> Also, please use the 'Recompile HINQ templates' option"
  1. W !," to recompile the 'DVBHINQ UPDATE' input template."
  1. ;
  1. K A1B20,A1B2X,A1B2MAX,A1B2EMP,DGI,A1B2LINE Q
  1. ;
  1. POS ; -- add ODS period of service
  1. S X="OPERATION DESERT SHIELD",DIC="^DIC(21,",DIC(0)="ML"
  1. S DIC("DR")=".02////ODS;.03////6;.04////2910115;.06////W;.07///1973;20////ACTIVE DUTY FROM ODS;10///OTHER FEDERAL AGENCY;15///ODS;.08////1"
  1. D ^DIC K DIC
  1. I Y<1 W !,*7,">>> Could not add 'OPERATION DESERT SHIELD' Period of Service." Q
  1. I $P(Y,U,3) W !,">>> 'OPERATION DESERT SHIELD (Code: 6)' Period of Service has been added."
  1. Q
  1. ;
  1. PAR ; -- set up parameter file entry
  1. Q:$D(^A1B2(11500.5,1,0))
  1. S Y=$O(^DIC(4.2,"B","ISC-ALBANY.DOMAIN.EXT",0))
  1. S DIC(0)="L",X=1,DIC="^A1B2(11500.5,",DIC("DR")=".02////0;.06////"_Y
  1. D ^DIC K DIC
  1. I $P(Y,U,3) W !!,">>> ODS PARAMETER file entry added."
  1. Q
  1. ;
  1. DEL ; -- call to remove delete routines
  1. I '$D(^%ZOSF("DEL")) W !,"^%ZOSF(""DEL"") does not exist" G QD
  1. ASK W !!,">>> This routine will permanantly remove the routines:"
  1. W !," A1B2NAT"
  1. W !," A1B2P1",!
  1. W !," WARNING: If either of the listed routines are mapped, they"
  1. W !," must first be removed from the mapped set to avoid"
  1. W !," further complications!",!
  1. W !,"Are you sure you want to continue" S %=2 D YN^DICN G QD:%=-1!(%=2) I '% W !?5,"Respond 'Y'es or 'N'o" G ASK
  1. W !,"Routine deletion starting..."
  1. F A1B2X="A1B2NAT","A1B2P1" S X=A1B2X X ^%ZOSF("TEST") I $T W !?5,"...removing ",X X ^%ZOSF("DEL")
  1. W !,"Routine deletion completed."
  1. QD K A1B2X,X,% Q
  1. ;
  1. BOS ; -- check Branch of Service entries
  1. ;
  1. W !!,">>> Will now check entries in your 'Branch of Service' file..."
  1. S E=0,DOTS=". . . . . . . . . . ."
  1. F I=1:1 S X=$P($T(NAMES+I),";",3) Q:X="$END" W !?10,X,$E(DOTS,1,25-$L(X)) S Y=$O(^DIC(23,"B",X,0)) W $S($D(^DIC(23,+Y,0)):"",1:"not "),"present" I 'E,'$D(^DIC(23,+Y,0)) S E=1
  1. I E W !!," You should use VA FileMan to enter/edit missing branches."
  1. K I,E,X,Y,DOTS Q
  1. ;
  1. NAMES ; -- BOS names
  1. ;;AIR FORCE
  1. ;;ARMY
  1. ;;COAST GUARD
  1. ;;MARINE CORPS
  1. ;;NAVY
  1. ;;NOAA
  1. ;;USPHS
  1. ;;$END