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

DDMOD.m

Go to the documentation of this file.
  1. DDMOD ;SFISC/MKO-DD MODIFICATION APIS ;1:45 PM 11 Dec 2001 [ 12/09/2003 4:43 PM ]
  1. ;;22.0;VA FileMan;**12,53,95,1002**;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. DELIX(DIFIL,DIFLD,DIXR,DIFLG,DIKDOUT,DIKDMSG) ;Delete traditional xref
  1. G DELIXX^DIKD
  1. ;
  1. DELIXN(DIFIL,DIXR,DIFLG,DIKDOUT,DIKDMSG) ;Delete new-style index
  1. G DELIXNX^DIKD2
  1. ;
  1. CREIXN(DIKCXREF,DIFLG,DIXR,DIKCOUT,DIKCMSG) ;Create new-style index
  1. G CREIXNX^DIKCR
  1. ;
  1. FILESEC(DIFIL,DISEC,DIMSGA) ;Set File Security Codes
  1. ; DIFIL = File Number
  1. ; .DISEC = Is the array for each security node
  1. ; DIMSGA = If passed where the error message is placed
  1. I (('$D(^DIC(+$G(DIFIL),0))#2)!(+$G(DIFIL)<2)) D Q
  1. . D CLEAN^DILF
  1. . I $G(DIMSGA)'="" D BLD^DIALOG(401,+$G(DIFIL),,DIMSGA,"F") Q
  1. . D BLD^DIALOG(401,+$G(DIFIL))
  1. I '$D(DISEC) Q
  1. N I
  1. ; DIC(DIFIL,0,"DD") 'Data Dictionary' Security
  1. ; DIC(DIFIL,0,"RD") 'Read' Security
  1. ; DIC(DIFIL,0,"WR") 'Write' Security
  1. ; DIC(DIFIL,0,"DEL") 'Delete' Security
  1. ; DIC(DIFIL,0,"LAYGO") 'Laygo' Security
  1. ; DIC(DIFIL,0,"AUDIT") 'Audit Security
  1. F I="DD","RD","WR","DEL","LAYGO","AUDIT" I $D(DISEC(I))#2 S ^DIC(DIFIL,0,I)=DISEC(I)
  1. Q