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

A4A7CLUP.m

Go to the documentation of this file.
  1. A4A7CLUP ;SFISC/RWF - CLEAN UP THE NEW PERSON FILE FOF ;12/27/90 16:25
  1. ;;1;;
  1. A I $G(DUZ(0))'="@" W !!,*7,"You must have VA FileMan Programmer access" Q
  1. W !!,"This routine will check and see if your site is using the new File Access",!,"method for VA FileMan. If not it will let you remove the fields in the "
  1. W !,"New Person and User file that could change the access method by accident"
  1. N I $D(^DD(200,0))[0 W !!,"You don't have a New Person file" G USER
  1. I $D(^DD(200.032,0))=0 G USER
  1. I $D(^VA(200,"AFOF")) W !!,*7,"You have data in your File 200 'AFOF' X-ref. This means that you are using the",!,"'ACCESSIBLE FILE' access." G USER
  1. W !!,"Your NEW PERSON file has the 'ACCESSIBLE FILE' field:"
  1. S DIR("A")="Remove 'ACCESSIBLE FILE' field",DIR(0)="Y" D ^DIR G PROV:$D(DIRUT)
  1. I Y=1 S DIU=200.032,DIU(0)="SD" D EN^DIU2
  1. USER ;
  1. I '$D(^DIC(3,"AFOF")) G U2
  1. W !!,*7,"You have data in your File 3 'AFOF' X-ref. This means that you are using the",!,"'ACCESSIBLE FILE' access."
  1. W !,"You must remove this FIRST if you want to run this option." G PROV
  1. U2 ;
  1. I $D(^DD(3.032,0))=0 W !,"You don't have the 'ACCESSIBLE FILE' field in your user file." G PROV
  1. W !!,"Your USER file has the 'ACCESSIBLE FILE' field:"
  1. S DIR("A")="Remove 'ACCESSIBLE FILE' field",DIR(0)="Y" D ^DIR G PROV:$D(DIRUT)
  1. I Y=1 S DIU=3.032,DIU(0)="SD" D EN^DIU2
  1. ;
  1. PROV ;
  1. I $D(^DD(6.01,.01,0))[0 G EXIT
  1. W !!,"The 'MNEMONIC' field in the PROVIDER file has been causing problems.",!,"It is sugested that it be removed."
  1. S DIR("A")="Remove 'MNEMONIC' field",DIR(0)="Y" D ^DIR G EXIT:$D(DIRUT)
  1. I Y=1 S DIU=6.01,DIU(0)="SD" D EN^DIU2
  1. EXIT W !!,"EXIT" K DIR,DIU,Y Q