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

IBEFUTL.m

Go to the documentation of this file.
  1. IBEFUTL ;ALB/AAS - INTEGRATED BILLING - FILER UTILITIES ; 26-FEB-91
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. START ; -turn IB filer on, task manually
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="START^IBEFUTL-1" D T0^%ZOSV ;start rt clock
  1. ;
  1. W !!,"This option will start the IB Background Filer running. If one filer"
  1. W !,"is currently running a second filer will be started. Manually starting"
  1. W !,"the filer with this option is not ordinarily necessary, as it will start"
  1. W !,"itself when needed. However, if the Filer job should be killed or"
  1. W !,"your system goes down with the filer running, you may need to use this"
  1. W !,"option."
  1. ;
  1. I '$D(^IBE(350.9,1,0)) W !!,"You must enter/edit site parameters first" G STARTQ
  1. I $P(^IBE(350.9,1,0),"^",4)]"" W !!,*7,"<<<<WARNING!!! ","Filer appears to have been started on " S Y=$P(^(0),"^",4) D DT^DIQ W ">>>>"
  1. ;
  1. W !! S DIR("A")="Are you sure",DIR("B")="NO",DIR(0)="Y" D ^DIR K DIR I 'Y W !!,"Nothing queued!" G STARTQ
  1. ;
  1. S1 N Y S DIE="^IBE(350.9,",DA=1,DR=".03////1;.04///@" D ^DIE K DIE,DA,DR
  1. D ZTSK^IBEF
  1. STARTQ K %H,D,DIC,X,Y,ZTSK
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="START^IBEFUTL" D T1^%ZOSV ;stop rt clock
  1. Q
  1. ;
  1. STOP ; -stop IB filer
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="STOP^IBEFUTL-1" D T0^%ZOSV ;start rt clock
  1. ;
  1. W !,"This option will edit the IB site parameter file and allow for the"
  1. W !,"graceful shutdown of the IB Background filer. Use of this option"
  1. W !,"will cause the IB Engine to file in the foreground until the site"
  1. W !,"parameter FILE IN BACKGROUND is edited to yes."
  1. W !!,"After using this option the filer may attempt to complete filing"
  1. W !,"posted transactions prior to stopping. This option should be used"
  1. W !,"prior to stopping taskmanager when doing an orderly system shutdown."
  1. W !!,"REMEMBER: If you use this option, you must edit the site parameter"
  1. W !,"FILE IN BACKGROUND to yes to allow the filer to restart, or use the"
  1. W !,"Start IB filer option."
  1. ;
  1. W !! S DIR("A")="Are you sure",DIR(0)="Y",DIR("B")="NO" D ^DIR K DIR I 'Y W !!,"Nothing stopped!" G STOPQ
  1. S DIE="^IBE(350.9,",DA=1,DR=".03////0" D ^DIE K DA,DIE,DR,DIC
  1. W !,"IB Background Filing stopped"
  1. ;
  1. STOPQ K %H,D,X
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="STOP^IBEFUTL" D T1^%ZOSV ;stop rt clock
  1. Q
  1. ;
  1. EDIT ; -edit IB site parameters
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="EDIT^IBEFUTL-1" D T0^%ZOSV ;start rt clock
  1. ;
  1. I '$D(^IBE(350.9,1,0)) K DD,DO S DIC="^IBE(350.9,",DIC(0)="L",(X,DINUM)=1 D FILE^DICN K DIC,DD,DO W !!,*7,"Creating Site Parameter Entry! You may now Edit"
  1. ;
  1. I '$D(^IBE(350.9,1,0)) W !!,*7,"<<<WARNING: There appears to be a problem in the parameter file.>>>" G EDITQ
  1. ;
  1. L +^IBE(350.9,1,0):0 I '$T W !,"Site Parameteres being edited by another user!" G EDITQ
  1. ;
  1. S DA=1,DR="[IB EDIT SITE PARAM]",DIE="^IBE(350.9," D ^DIE
  1. L -^IBE(350.9,1,0)
  1. ;
  1. EDITQ K %H,DA,DR,DIE,DIC,X,Y
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="EDIT^IBEFUTL" D T1^%ZOSV ;stop rt clock
  1. Q
  1. ;
  1. CLEAR ; - clear the start date and tasked flags from file 350.9
  1. ;***
  1. ;S XRTL=$ZU(0),XRTN="CLEAR^IBEFUTL-1" D T0^%ZOSV ;start rt clock
  1. ;
  1. S DA=1,DIE="^IBE(350.9,",DR="[IB EDIT CLEAR]" D ^DIE K DA,DIE,DR,DIC
  1. ;***
  1. ;I $D(XRT0) S:'$D(XRTN) XRTN="CLEAR^IBEFUTL" D T1^%ZOSV ;stop rt clock
  1. Q