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

XBSDDAUD.m

Go to the documentation of this file.
  1. XBSDDAUD ;IHS/SET/GTH - SET DICTIONARY AUDIT(S) ; [ 10/29/2002 7:42 AM ]
  1. ;;3.0;IHS/VA UTILITIES;**9**;FEB 07, 1997
  1. ;IHS/SET/GTH XB*3*9 10/29/2002 New Routine.
  1. ; This routine allows you to toggle the dictionary (dd) audit
  1. ; flag for selected files. The global location for dictionary
  1. ; audit is: ^DD(FILE,0,"DDA")
  1. ; If the valuey is "Y", dd audit is on. Any other value, or the
  1. ; absence of the node, means dd audit is off.
  1. ;
  1. START ;
  1. W !!,"^XBSDDAUD - This routine toggles the data dictionary audit flag(s)."
  1. D ^XBDSET
  1. Q:'$D(^UTILITY("XBDSET",$J))
  1. D DEV
  1. Q:POP
  1. D DISP
  1. Q:'$$DIR^XBDIR("Y","Proceed to toggling dd audit for file(s)","N")
  1. D SET
  1. KILL X,Y,^UTILITY("XBDSET",$J)
  1. Q
  1. ;
  1. DISP ; Display current dd audit values for file(s).
  1. NEW F,G,P
  1. W !,"File #",?15,"File Name",?50,"Global",?65,"dd Audit On/Off"
  1. F F=0:0 S F=$O(^UTILITY("XBDSET",$J,F)) Q:F'=+F D
  1. . S G=$G(^DIC(F,0,"GL"))
  1. . S P=$G(^DD(F,0,"DDA"))
  1. . W !,F,?15,$$FNAME^XBFUNC(F),?50,G,?65,$S(P="Y":"on",1:"off")
  1. .Q
  1. ;
  1. Q
  1. ;
  1. DEV ; Select device for report.
  1. W !
  1. S %=$$PB
  1. I %=U!$D(DTOUT)!$D(DUOUT) Q
  1. I %="B" D VIEWR^XBLM("DISP^XBSDDAUD"),EN^XBVK("VALM") Q
  1. D ^%ZIS
  1. Q
  1. ;
  1. PB() ;
  1. Q $$DIR^XBDIR("SO^P:PRINT Output;B:BROWSE Output on Screen","Do you want to ","PRINT","","","",2)
  1. ;
  1. SET ; Set DDA for the file(s).
  1. NEW F,G,P,Y
  1. S Y=$$DIR^XBDIR("S^1:ON;2:OFF","Set 'dd audit' ON or OFF?","OFF")
  1. Q:$D(DUOUT)!$D(DTOUT)
  1. S Y=$S(Y=1:"Y",1:"")
  1. W !
  1. F F=0:0 S F=$O(^UTILITY("XBDSET",$J,F)) Q:F'=+F D
  1. . Q:'$D(^DD(F))
  1. . S ^DD(F,0,"DDA")=Y
  1. . W !,F," set ",$S(Y="Y":"on",1:"off")
  1. .Q
  1. ;
  1. Q
  1. ;