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

DVBAPOPU.m

Go to the documentation of this file.
  1. DVBAPOPU ;ALB/JLU;utility routine for post inits;9/1/94
  1. ;;2.7;AMIE;;Apr 10, 1995
  1. EN ;the main entry point
  1. D SETPURG
  1. Q
  1. ;
  1. SETPURG ;this set up the DAYS TO KEEP 2507 HISTORY parameter.
  1. N PAR
  1. S VAR=" - Checking 2507 purge parameter"
  1. W !!,VAR
  1. D BUMPBLK^DVBAPOST,BUMPBLK^DVBAPOST,BUMP^DVBAPOST(VAR)
  1. K VAR
  1. S PAR=$$IFNPAR^DVBAUTL3
  1. I 'PAR DO I 1
  1. .N VAR
  1. .S VAR="No parameter file entry exists!"
  1. .W *7,!!,VAR
  1. .D BUMPBLK^DVBAPOST,BUMPBLK^DVBAPOST,BUMP^DVBAPOST(VAR)
  1. .S VAR="Consult the AMIE installation manual for further details."
  1. .W !,VAR
  1. .D BUMP^DVBAPOST(VAR)
  1. .Q
  1. E DO
  1. .I +$P(^DVB(396.1,PAR,0),U,11)>119 Q
  1. .S $P(^DVB(396.1,PAR,0),U,11)=120
  1. .Q
  1. Q
  1. ;
  1. IEN6(X) ;this entry point returns the internal value of the amie exam file
  1. ;a null is returned if not found.
  1. ;
  1. N X1
  1. S X1=$O(^DVB(396.6,"B",$E(X,1,30),0))
  1. I X1="" D ERR1("AMIE EXAM file",X) Q X1
  1. I '$D(^DVB(396.6,X1,0)) D ERR2("AMIE EXAM file",X) S X1=""
  1. Q X1
  1. ;
  1. IEN7(X) ;this entry point returns the internal value of the amie 2507 BODY SYSTEM
  1. ;file.
  1. ;a null is returned if not found.
  1. ;
  1. N X1
  1. S X1=$O(^DVB(396.7,"B",X,0))
  1. I X1="" D ERR1("2507 BODY SYSTEM file",X) Q X1
  1. I '$D(^DVB(396.7,X1,0)) D ERR2("2507 BODY SYSTEM file",X) S X1=""
  1. Q X1
  1. ;
  1. ERR1(A,B) ;this entry point is to inform the user of an error in the
  1. ;B cross reference of the file
  1. ;A is the file name
  1. ;B is the entry number
  1. D BUMPBLK^DVBAPOST
  1. D BUMPBLK^DVBAPOST
  1. S VAR="The entry "_B_" is not defined in "_A
  1. W !,VAR D BUMP^DVBAPOST(VAR)
  1. S VAR="Consult the AMIE Install Guide for details"
  1. W !,VAR D BUMP^DVBAPOST(VAR)
  1. Q
  1. ;
  1. ERR2(A,B) ;this entry point is to inform the user of an error in the
  1. ;the zero node of the file
  1. ;A is the file name
  1. ;B is the entry number
  1. D BUMPBLK^DVBAPOST
  1. D BUMPBLK^DVBAPOST
  1. S VAR="The zero node of the entry "_B_" is missing in the "_A
  1. W !,VAR D BUMP^DVBAPOST(VAR)
  1. S VAR="Consult the AMIE Install Guide for details"
  1. W !,VAR D BUMP^DVBAPOST(VAR)
  1. Q
  1. ;
  1. DELETE ;this entry point is used to kill the files 396.91, and 396.92
  1. N VAR
  1. K ^DVBP(396.91)
  1. K ^DVBP(396.92)
  1. S VAR(1,0)="0,0,0,1,0^Removal of data from file 396.91 and 396.92 is complete!"
  1. D WR^DVBAUTL4("VAR")
  1. Q