Changeset 441


Ignore:
Timestamp:
May 5, 2009, 5:24:14 PM (16 years ago)
Author:
George Lilly
Message:

batch processing and options

Location:
ccr/trunk/p
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CBAT.m

    r440 r441  
    2828 I '$D(^TMP("C0CBAT","STOP")) D  ; SIGNAL RECEIVED
    2929 . W "CCR BATCH JOB TERMINATING",!
    30  E  K ^TMP("C0CBAT","STOP") ; STOP SIGNALING
     30 E  D  ;
     31 . K ^TMP("C0CBAT","STOP") ; STOP SIGNALING
     32 . W !,"BATCH PROCESSING APPARENTLY NOT RUNNING",!
    3133 Q
    3234 ;
     
    104106 . S C0CEST=$$FMADD^XLFDT(C0CBDT,0,0,0,C0CETOT) ; ADD SECONDS TO BATCH START
    105107 . S C0CFDA(C0CBF,C0CIEN_",",4.2)=C0CEST ;ESTIMATED COMPLETION TIME
     108 . S C0CFDA(C0CBF,C0CIEN_",",5)=C0CBCUR ; LAST RECORD PROCESSED
    106109 . D UPDIE ;
    107110 . I $D(^TMP("C0CBAT","STOP")) D  ; IF STOP SIGNAL DETECTED
     
    112115 . I $D(@C0CBH@(C0CBCUR)) Q  ; SKIP IF IN HOT LIST - ALREADY DONE
    113116 . D ANALYZE^C0CRIMA(C0CBCUR,1,"LABLIMIT:T-760^VITLIMIT:T-760")
    114  . I $G(C0CCHK) D  ;
     117 . I $G(C0CCHK) D  ; IF CHECKSUMS HAVE CHANGED
    115118 . . D PUTRIM^C0CFM2(C0CBCUR)
    116119 . . D XPAT^C0CCCR(C0CBCUR) ; IF VARIABLES HAVE CHANGED GENERATE CCR
     
    130133 . S C0CEST=$$FMADD^XLFDT(C0CBDT,0,0,0,C0CETOT) ; ADD SECONDS TO BATCH START
    131134 . S C0CFDA(C0CBF,C0CIEN_",",4.2)=C0CEST ;ESTIMATED COMPLETION TIME
     135 . S C0CFDA(C0CBF,C0CIEN_",",5)=C0CBCUR ;
    132136 . D UPDIE ;
    133137 . I $D(^TMP("C0CBAT","STOP")) D  ; IF STOP SIGNAL DETECTED
     
    135139 . . K ^TMP("C0CBAT","STOP") ; SIGNAL RECEIVED
    136140 . H 1 ; GIVE IT A BREAK
     141 I (C0CSTOP) S C0CDISP="KILLED"
     142 E  S C0CDISP="FINISHED"
     143 S C0CFDA(C0CBF,C0CIEN_",",6)=C0CDISP
     144 D UPDIE ; SET DISPOSITION FIELD
    137145 K ^TMP("C0CBAT","RUNNING")
    138146 Q
  • ccr/trunk/p/C0CCCR.m

    r440 r441  
    4343 I UFN="" S ONAM="PAT_"_DFN_"_CCR_V1_0_22.xml"
    4444 S ODIRGLB=$NA(^TMP("C0CCCR","ODIR"))
    45  S ^TMP("C0CCCR","FNAME",DFN)=UFN ; FILE NAME FOR BATCH USE
     45 S ^TMP("C0CCCR","FNAME",DFN)=ONAM ; FILE NAME FOR BATCH USE
    4646 I $D(^TMP("GPLCCR","ODIR")) S @ODIRGLB=^TMP("GPLCCR","ODIR")
    4747 I '$D(@ODIRGLB) D  ; IF NOT ODIR HAS BEEN SET
Note: See TracChangeset for help on using the changeset viewer.