- Timestamp:
- May 5, 2009, 5:24:14 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CBAT.m
r440 r441 28 28 I '$D(^TMP("C0CBAT","STOP")) D ; SIGNAL RECEIVED 29 29 . 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",! 31 33 Q 32 34 ; … … 104 106 . S C0CEST=$$FMADD^XLFDT(C0CBDT,0,0,0,C0CETOT) ; ADD SECONDS TO BATCH START 105 107 . S C0CFDA(C0CBF,C0CIEN_",",4.2)=C0CEST ;ESTIMATED COMPLETION TIME 108 . S C0CFDA(C0CBF,C0CIEN_",",5)=C0CBCUR ; LAST RECORD PROCESSED 106 109 . D UPDIE ; 107 110 . I $D(^TMP("C0CBAT","STOP")) D ; IF STOP SIGNAL DETECTED … … 112 115 . I $D(@C0CBH@(C0CBCUR)) Q ; SKIP IF IN HOT LIST - ALREADY DONE 113 116 . 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 115 118 . . D PUTRIM^C0CFM2(C0CBCUR) 116 119 . . D XPAT^C0CCCR(C0CBCUR) ; IF VARIABLES HAVE CHANGED GENERATE CCR … … 130 133 . S C0CEST=$$FMADD^XLFDT(C0CBDT,0,0,0,C0CETOT) ; ADD SECONDS TO BATCH START 131 134 . S C0CFDA(C0CBF,C0CIEN_",",4.2)=C0CEST ;ESTIMATED COMPLETION TIME 135 . S C0CFDA(C0CBF,C0CIEN_",",5)=C0CBCUR ; 132 136 . D UPDIE ; 133 137 . I $D(^TMP("C0CBAT","STOP")) D ; IF STOP SIGNAL DETECTED … … 135 139 . . K ^TMP("C0CBAT","STOP") ; SIGNAL RECEIVED 136 140 . 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 137 145 K ^TMP("C0CBAT","RUNNING") 138 146 Q -
ccr/trunk/p/C0CCCR.m
r440 r441 43 43 I UFN="" S ONAM="PAT_"_DFN_"_CCR_V1_0_22.xml" 44 44 S ODIRGLB=$NA(^TMP("C0CCCR","ODIR")) 45 S ^TMP("C0CCCR","FNAME",DFN)= UFN; FILE NAME FOR BATCH USE45 S ^TMP("C0CCCR","FNAME",DFN)=ONAM ; FILE NAME FOR BATCH USE 46 46 I $D(^TMP("GPLCCR","ODIR")) S @ODIRGLB=^TMP("GPLCCR","ODIR") 47 47 I '$D(@ODIRGLB) D ; IF NOT ODIR HAS BEEN SET
Note:
See TracChangeset
for help on using the changeset viewer.