source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRARCMR2.m@ 1259

Last change on this file since 1259 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.4 KB
Line 
1LRARCMR2 ;DALISC/CKA - ARCHIVED WKLD STATS REPORT - COMMENTS PRINT ; 5/22/95
2 ;;5.2;LAB SERVICE;**59**;Aug 31, 1995
3 ;same as LRCAPMR2 except archived wkld file
4 ;
5ASKCOM ;lrcm
6 R !!,"PRINT THE COMMENT PAGES? NO//",LRCM:DTIME
7 I '$T!(LRCM=U) S LREND=1 Q
8 I LRCM["?" W !,"Do you want to print comments? YES or NO.",! G ASKCOM
9 S LRCM=$S($E(LRCM,1)="Y"!($E(LRCM,1)="y"):1,1:0) W !
10 Q
11COMM ;Called from LRARCMA2,LRARCML2,LRRP8C
12 Q:'+$G(LRCM)
13 N LRDAT,LRCC,LRGCN,LRCCN,LRDCN,LRCONT
14 D GENCOM Q:LREND
15 D CAPCOM Q:LREND
16 D DATCOM
17 Q
18GENCOM ;
19 N LRHDR,LRHDR3
20 S LRGCN=0
21 S LRGCN=$O(^TMP("LRAR",$J,"GCOM",LRGCN))
22 Q:'LRGCN ;no general comments
23 S LRHDR="GENERAL WORKLOAD COMMENTS"
24 S LRHDR3="[Includes all archived workload data in date range]"
25 D HDR^LRARCU
26 S LRGCN=0
27 F S LRGCN=$O(^TMP("LRAR",$J,"GCOM",LRGCN)) Q:('LRGCN)!(LREND) D
28 . S LRCOMM=$G(^TMP("LRAR",$J,"GCOM",LRGCN))
29 . I $Y+6'<IOSL D NPG^LRARCU Q:LREND
30 . W !,LRCOMM,!
31 D:$E(IOST,1,2)="C-" PAUSE^LRARCU Q:LREND W @IOF
32 Q
33CAPCOM ;
34 N LRHDR,LRHDR3
35 S LRCAPNAM=""
36 S LRCAPNAM=$O(^TMP("LRAR",$J,"CCOM",LRCAPNAM))
37 Q:LRCAPNAM="" ;no wkld code comments
38 S LRHDR="WORKLOAD COMMENTS by WKLD CODE"
39 S LRHDR3="[Includes all archived workload data in date range]"
40 D HDR^LRARCU
41 S LRCAPNAM=""
42 F S LRCAPNAM=$O(^TMP("LRAR",$J,"CCOM",LRCAPNAM)) Q:(LRCAPNAM="")!(LREND) D
43 . S LRCAPNUM=$G(^TMP("LRAR",$J,"CCOM",LRCAPNAM,0))
44 . W !!,LRCAPNUM,?15,LRCAPNAM,!
45 . S LRCCN=0
46 . F S LRCCN=$O(^TMP("LRAR",$J,"CCOM",LRCAPNAM,LRCCN)) Q:('LRCCN)!(LREND) D
47 . . S LRCOMM=$G(^TMP("LRAR",$J,"CCOM",LRCAPNAM,LRCCN))
48 . . I $Y+6'<IOSL D
49 . . . D NPG^LRARCU
50 . . . Q:LREND
51 . . . W !!,LRCAPNUM,?15,LRCAPNAM," (cont.)",!
52 . . Q:LREND
53 . . W LRCOMM,!
54 . W $E(LRDSHS,1,80),!
55 D:$E(IOST,1,2)="C-" PAUSE^LRARCU Q:LREND W @IOF
56 Q
57DATCOM ;
58 N LRDATE,LRHDR,LRHDR3
59 S LRDAT=0
60 S LRDAT=$O(^TMP("LRAR",$J,"DCOM",LRDAT))
61 Q:'LRDAT ;no date comments
62 S LRHDR="WORKLOAD COMMENTS by DATE"
63 S LRHDR3="[Includes all archived workload data in date range]"
64 D HDR^LRARCU
65 S LRDAT=0
66 F S LRDAT=$O(^TMP("LRAR",$J,"DCOM",LRDAT)) Q:('LRDAT)!(LREND) D
67 . S Y=LRDAT D DD^%DT S LRDATE=Y
68 . W !!,LRDATE,!
69 . S LRDCN=0
70 . F S LRDCN=$O(^TMP("LRAR",$J,"DCOM",LRDAT,LRDCN)) Q:('LRDCN)!(LREND) D
71 . . S LRCOMM=$G(^TMP("LRAR",$J,"DCOM",LRDAT,LRDCN))
72 . . I $Y+6'<IOSL D
73 . . . D NPG^LRARCU
74 . . . Q:LREND
75 . . . W !!,LRDATE," (cont.)",!
76 . . Q:LREND
77 . . W LRCOMM,!
78 . W $E(LRDSHS,1,80),!
79 D:$E(IOST,1,2)="C-" PAUSE^LRARCU Q:LREND W @IOF
80 Q
Note: See TracBrowser for help on using the repository browser.