This is where I am at...
JOIN
LEFT_OUTER PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEYRN
AND PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEWKN IN PWCS_WJEMPWKF TO MULTIPLE
DW_DIM_TM.DW_DIM_TM.CALFSYR AND DW_DIM_TM.DW_DIM_TM.CALFSWK IN DW_DIM_TM TAG J0
AS J0
END
DEFINE FILE PWCS_WJEMPWKF
STARTS/YYMD = DATEADD(CALDTEI, 'D', -56);
ENDS/YYMD = DATEADD(CALDTEI, 'D', -7);
END
TABLE FILE PWCS_WJEMPWKF
SUM
PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEHRST
PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJECSET
BY LOWEST PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEYRN
BY LOWEST PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEWKN
BY LOWEST PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJECDE
BY LOWEST PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJECVWDS
BY LOWEST J0.DW_DIM_TM.CALDTEI
BY STARTS
BY ENDS
WHERE J0.DW_DIM_TM.CALDAYW EQ 1;
WHERE PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJECDE CONTAINS '101' OR '201' OR '203' OR '217' OR '209' OR '501' OR '509';
WHERE PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEWH EQ ' 1' OR ' 7';
WHERE PWCS_WJEMPWKF.PWCS_WJEMPWKF.WJEYRN LE '2007';
END
Running it gives me this...
Year Week JobCode Job Description CALDTEI STARTS ENDS HoursWorkedWk CasesPickedWk
2007 39 201 PULL A/B NITES 2007/09/24 2007/07/30 2007/09/17 1685.27 155235
203 PULL C NITES 2007/09/24 2007/07/30 2007/09/17 554.73 72584
40 201 PULL A/B NITES 2007/10/01 2007/08/06 2007/09/24 1621.41 148685
203 PULL C NITES 2007/10/01 2007/08/06 2007/09/24 512.29 64904
41 201 PULL A/B NITES 2007/10/08 2007/08/13 2007/10/01 1824.69 164261
203 PULL C NITES 2007/10/08 2007/08/13 2007/10/01 599.74 75623
42 201 PULL A/B NITES 2007/10/15 2007/08/20 2007/10/08 1877.37 161407
203 PULL C NITES 2007/10/15 2007/08/20 2007/10/08 573.83 77060
43 201 PULL A/B NITES 2007/10/22 2007/08/27 2007/10/15 2180.31 169755
203 PULL C NITES 2007/10/22 2007/08/27 2007/10/15 610.82 72208
44 201 PULL A/B NITES 2007/10/29 2007/09/03 2007/10/22 2131.05 160404
203 PULL C NITES 2007/10/29 2007/09/03 2007/10/22 546.49 64629
45 201 PULL A/B NITES 2007/11/05 2007/09/10 2007/10/29 2445.58 165426
203 PULL C NITES 2007/11/05 2007/09/10 2007/10/29 778.19 93454
46 101 PULL A/B DAYS 2007/11/12 2007/09/17 2007/11/05 .71 0
201 PULL A/B NITES 2007/11/12 2007/09/17 2007/11/05 3391.49 189048
203 PULL C NITES 2007/11/12 2007/09/17 2007/11/05 927.84 97807
47 201 PULL A/B NITES 2007/11/19 2007/09/24 2007/11/12 2088.44 135537
203 PULL C NITES 2007/11/19 2007/09/24 2007/11/12 723.99 84911
48 201 PULL A/B NITES 2007/11/26 2007/10/01 2007/11/19 2245.30 142581
203 PULL C NITES 2007/11/26 2007/10/01 2007/11/19 743.18 76030
49 201 PULL A/B NITES 2007/12/03 2007/10/08 2007/11/26 3366.22 152292
203 PULL C NITES 2007/12/03 2007/10/08 2007/11/26 783.74 89672
50 101 PULL A/B DAYS 2007/12/10 2007/10/15 2007/12/03 14.56 1784
201 PULL A/B NITES 2007/12/10 2007/10/15 2007/12/03 2770.92 173269
203 PULL C NITES 2007/12/10 2007/10/15 2007/12/03 818.23 96401
51 101 PULL A/B DAYS 2007/12/17 2007/10/22 2007/12/10 4.26 529
201 PULL A/B NITES 2007/12/17 2007/10/22 2007/12/10 2563.36 198177
203 PULL C NITES 2007/12/17 2007/10/22 2007/12/10 804.44 100249
52 101 PULL A/B DAYS 2007/12/23 2007/10/28 2007/12/16 41.81 1799
201 PULL A/B NITES 2007/12/23 2007/10/28 2007/12/16 1632.17 128821
203 PULL C NITES 2007/12/23 2007/10/28 2007/12/16 552.92 64199
...Tons more data after the sample size.
In TSQL, I could do a SELF JOIN and get this solved, but in WebFOCUS, I'm stumped. I tried everything for 4 days. So I hope you can understand my frustration with this.
WebFOCUS 8
Windows, All Outputs