HLCS1 ;ALB/JRP - OPTIONS FOR BACKGROUND FILERS ;10/15/98 10:44 ;;1.6;HEALTH LEVEL SEVEN;**19**;Oct 13, 1995 ; STARTDEF ;Entry point used by OPTION file to task default number of each filer N PTRMAIN,ONENODE,DEFCNT,CURCNT,LOOP ;Get entry in HL COMMUNICATION SERVER PARAMETER file (#869.3) S PTRMAIN=+$O(^HLCS(869.3,0)) I ('PTRMAIN) D Q .W $C(7) .W !!,"Entry in HL COMMUNICATION SERVER PARAMETER file (#869.3) has" .W !,"not been made. Entry must be made in order to start execute" .W !,"this option.",!! ;Get zero node of parameter file S ONENODE=$G(^HLCS(869.3,PTRMAIN,1)) ;Get default number of incoming filers (piece 1 of node 1) S DEFCNT=+$P(ONENODE,"^",1) I ('DEFCNT) D .;No default value found .S DEFCNT=1 .W $C(7) .W !!,"Default number of incoming servers has not been entered into" .W !,"the HL COMMUNICATION SERVER PARAMETER file (#869.3). Will use" .W !,"a value of ",DEFCNT,".",!! ;Get current number of incoming filers running S CURCNT=$$CNTFLR^HLCSUTL2("IN") I ((CURCNT>DEFCNT)!(CURCNT=DEFCNT)) D .;No more incoming filers needed .W $C(7) .W !!,"Default number of incoming servers is set to ",DEFCNT," and" .W !,CURCNT," incoming servers are currently running. No more" .W !,"incoming servers will be started.",!! I (CURCNTDEFCNT)!(CURCNT=DEFCNT)) D .;No more outgoing filers needed .W $C(7) .W !!,"Default number of outgoing servers is set to ",DEFCNT," and" .W !,CURCNT," outgoing servers are currently running. No more" .W !,"outgoing servers will be started.",!! I (CURCNT