WolffPack differences report |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFOVRAWN
*S*** System : FINANCIER
*S*** Title : Need/Gap/Overaward Determination
*S*** Generated: Nov 24,98 at 05:25 PM
*S*** Function : This program is used to calculate aid/need gap,
*S*** remaining eligibility, and overaward amounts.
*S***
*S***
*S***
*S*** Copyright 1995 - 2003 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S** PARAMETER USING WWPDA
*S** PARAMETER USING WFOVRAWD
*S** PARAMETER USING WFAIDYRD
*S***
*S** LOCAL
*S** 01 #HOLD-VARS
*S** 02 #HOLD-AID(P5.2)
*S** 02 #HOLD-AID-MN(P5.2)
*S** 02 #HOLD-AID-FC(P5.2)
*S** 02 #HOLD-AID-SC(P5.2)
*S** 02 #HOLD-AID-PC(P5.2)
*S***
*S** 02 #HOLD-FC(P7)
*S** 02 #HOLD-SC(P7)
*S** 02 #HOLD-PC(P7)
*S** 02 #HOLD-NEED(P5)
*S***
*S** 02 #HOLD-GAP(P5.2)
*S** 02 #HOLD-REM(P5.2)
*S** 02 #HOLD-OVR(P5.2)
*S***
*S** 02 #TEMP-FC(P7)
*S** 02 #TEMP-SC(P7)
*S** 02 #TEMP-PC(P7)
*S** 02 #TEMP-AID-MN(P5.2)
*S**END-DEFINE
*S***
*S***
*S*************************************************************************
*S** /*
*S** /* Populate WW-GDA from WW-PDA
*S** MOVE BY POSITION WW-PDA TO WW-GDA
*S** /*
*S** RESET WFOVRAWD
*S** /*
*S** MOVE WFAIDYRD.WF-AY-W-AID TO #HOLD-AID
*S** MOVE WFAIDYRD.WF-AY-W-AID-MN TO #HOLD-AID-MN
*S** MOVE WFAIDYRD.WF-AY-W-AID-FC TO #HOLD-AID-FC
*S** MOVE WFAIDYRD.WF-AY-W-AID-SC TO #HOLD-AID-SC
*S** MOVE WFAIDYRD.WF-AY-W-AID-PC TO #HOLD-AID-PC
*S** /*
*S** /* Compute for M1
*S** MOVE WFAIDYRD.WF-AY-M1-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M1-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M1-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M1-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH1-GAP
*S** MOVE #HOLD-REM TO #METH1-REM
*S** MOVE #HOLD-OVR TO #METH1-OVR
*S** /*
*S** /* Compute for M2
*S** MOVE WFAIDYRD.WF-AY-M2-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M2-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M2-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M2-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH2-GAP
*S** MOVE #HOLD-REM TO #METH2-REM
*S** MOVE #HOLD-OVR TO #METH2-OVR
*S** /*
*S** /* If appropriate, compute for M3
*S** IF WFAIDYRD.WF-AY-N-M3 NE ' '
*S** MOVE WFAIDYRD.WF-AY-M3-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M3-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M3-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M3-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH3-GAP
*S** MOVE #HOLD-REM TO #METH3-REM
*S** MOVE #HOLD-OVR TO #METH3-OVR
*S** END-IF
*S** /*
*S** /* Populate WW-PDA from WW-GDA
*S** MOVE BY POSITION WW-GDA TO WW-PDA
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMPUTE-DIFFERENCES
*S*************************************************************************
*S** IF #HOLD-AID-MN GE #HOLD-NEED
*S** ASSIGN #HOLD-GAP = 0
*S** ELSE
*S** ASSIGN #HOLD-GAP = #HOLD-NEED - #HOLD-AID-MN
*S** END-IF
*S** /*
*S** ASSIGN #TEMP-AID-MN = #HOLD-AID-MN
*S** /*
*S** /* Effective 2025, SC + PC may be negative
*S** /* cannot use for packaging/aid awarding
*S** IF ##AID-YEAR > '2024'
*S** IF #HOLD-SC < 0
*S** COMPUTE #HOLD-SC = 0
*S** END-IF
*S** IF #HOLD-PC < 0
*S** COMPUTE #HOLD-PC = 0
*S** END-IF
*S** END-IF
*S** /*
*S** IF #HOLD-SC GE #HOLD-AID-SC
*S** COMPUTE #TEMP-SC = #HOLD-SC - #HOLD-AID-SC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-SC
*S** ELSE
*S** ASSIGN #TEMP-SC = 0
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-SC
*S** END-IF
*S** IF #HOLD-PC GE #HOLD-AID-PC
*S** COMPUTE #TEMP-PC = #HOLD-PC - #HOLD-AID-PC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-PC
*S** ELSE
*S** ASSIGN #TEMP-PC = 0
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-PC
*S** END-IF
*S** /*
*S** /* Effective 2025, SC + PC may be negative
*S** /* cannot use for packaging/aid awarding
*S*** IF ##AID-YEAR > '2024'
*S*** IF #TEMP-SC + #TEMP-PC > 9999999
*S*** ASSIGN #TEMP-FC = 9999999
*S*** ELSE
*S*** IF #TEMP-SC + #TEMP-PC < 0
*S*** COMPUTE #TEMP-FC = 0
*S*** ELSE
*S*** COMPUTE #TEMP-FC = #TEMP-SC + #TEMP-PC
*S*** END-IF
*S*** END-IF
*S*** ELSE
*S** IF #TEMP-SC + #TEMP-PC > 9999999
*S** ASSIGN #TEMP-FC = 9999999
*S** ELSE
*S** COMPUTE #TEMP-FC = #TEMP-SC + #TEMP-PC
*S*** END-IF
*S** END-IF
*S** IF #TEMP-FC GE #HOLD-AID-FC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-FC
*S** ELSE
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #TEMP-FC
*S** END-IF
*S** IF #TEMP-AID-MN > #HOLD-NEED
*S** ASSIGN #HOLD-REM = 0
*S** ASSIGN #HOLD-OVR = #TEMP-AID-MN - #HOLD-NEED
*S** ELSE
*S** ASSIGN #HOLD-REM = #HOLD-NEED - #TEMP-AID-MN
*S** ASSIGN #HOLD-OVR = 0
*S** END-IF
*S**END-SUBROUTINE /* COMPUTE-DIFFERENCES
*S**END
*E
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFOVRAWN
*S*** System : FINANCIER
*S*** Title : Need/Gap/Overaward Determination
*S*** Generated: Nov 24,98 at 05:25 PM
*S*** Function : This program is used to calculate aid/need gap,
*S*** remaining eligibility, and overaward amounts.
*S***
*S***
*S***
*S*** Copyright 1995 - 2003 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S** PARAMETER USING WWPDA
*S** PARAMETER USING WFOVRAWD
*S** PARAMETER USING WFAIDYRD
*S***
*S** LOCAL
*S** 01 #HOLD-VARS
*S** 02 #HOLD-AID(P5.2)
*S** 02 #HOLD-AID-MN(P5.2)
*S** 02 #HOLD-AID-FC(P5.2)
*S** 02 #HOLD-AID-SC(P5.2)
*S** 02 #HOLD-AID-PC(P5.2)
*S***
*S** 02 #HOLD-FC(P7)
*S** 02 #HOLD-SC(P7)
*S** 02 #HOLD-PC(P7)
*S** 02 #HOLD-NEED(P5)
*S***
*S** 02 #HOLD-GAP(P5.2)
*S** 02 #HOLD-REM(P5.2)
*S** 02 #HOLD-OVR(P5.2)
*S***
*S** 02 #TEMP-FC(P7)
*S** 02 #TEMP-SC(P7)
*S** 02 #TEMP-PC(P7)
*S** 02 #TEMP-AID-MN(P5.2)
*S**END-DEFINE
*S***
*S***
*S*************************************************************************
*S** /*
*S** /* Populate WW-GDA from WW-PDA
*S** MOVE BY POSITION WW-PDA TO WW-GDA
*S** /*
*S** RESET WFOVRAWD
*S** /*
*S** MOVE WFAIDYRD.WF-AY-W-AID TO #HOLD-AID
*S** MOVE WFAIDYRD.WF-AY-W-AID-MN TO #HOLD-AID-MN
*S** MOVE WFAIDYRD.WF-AY-W-AID-FC TO #HOLD-AID-FC
*S** MOVE WFAIDYRD.WF-AY-W-AID-SC TO #HOLD-AID-SC
*S** MOVE WFAIDYRD.WF-AY-W-AID-PC TO #HOLD-AID-PC
*S** /*
*S** /* Compute for M1
*S** MOVE WFAIDYRD.WF-AY-M1-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M1-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M1-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M1-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH1-GAP
*S** MOVE #HOLD-REM TO #METH1-REM
*S** MOVE #HOLD-OVR TO #METH1-OVR
*S** /*
*S** /* Compute for M2
*S** MOVE WFAIDYRD.WF-AY-M2-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M2-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M2-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M2-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH2-GAP
*S** MOVE #HOLD-REM TO #METH2-REM
*S** MOVE #HOLD-OVR TO #METH2-OVR
*S** /*
*S** /* If appropriate, compute for M3
*S** IF WFAIDYRD.WF-AY-N-M3 NE ' '
*S** MOVE WFAIDYRD.WF-AY-M3-FC TO #HOLD-FC
*S** MOVE WFAIDYRD.WF-AY-M3-SC TO #HOLD-SC
*S** MOVE WFAIDYRD.WF-AY-M3-PC TO #HOLD-PC
*S** MOVE WFAIDYRD.WF-AY-M3-NEED TO #HOLD-NEED
*S** PERFORM COMPUTE-DIFFERENCES
*S** MOVE #HOLD-GAP TO #METH3-GAP
*S** MOVE #HOLD-REM TO #METH3-REM
*S** MOVE #HOLD-OVR TO #METH3-OVR
*S** END-IF
*S** /*
*S** /* Populate WW-PDA from WW-GDA
*S** MOVE BY POSITION WW-GDA TO WW-PDA
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMPUTE-DIFFERENCES
*S*************************************************************************
*S** IF #HOLD-AID-MN GE #HOLD-NEED
*S** ASSIGN #HOLD-GAP = 0
*S** ELSE
*S** ASSIGN #HOLD-GAP = #HOLD-NEED - #HOLD-AID-MN
*S** END-IF
*S** /*
*S** ASSIGN #TEMP-AID-MN = #HOLD-AID-MN
*S** /*
*S** /* Effective 2025, SC + PC may be negative
*S** /* cannot use for packaging/aid awarding
*S** IF ##AID-YEAR > '2024'
*S** IF #HOLD-SC < 0
*S** COMPUTE #HOLD-SC = 0
*S** END-IF
*S** IF #HOLD-PC < 0
*S** COMPUTE #HOLD-PC = 0
*S** END-IF
*S** IF #HOLD-FC < 0
*S** COMPUTE #HOLD-FC = 0
*S** END-IF
*S** END-IF
*S** /*
*S** IF #HOLD-SC GE #HOLD-AID-SC
*S** COMPUTE #TEMP-SC = #HOLD-SC - #HOLD-AID-SC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-SC
*S** ELSE
*S** ASSIGN #TEMP-SC = 0
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-SC
*S** END-IF
*S** IF #HOLD-PC GE #HOLD-AID-PC
*S** COMPUTE #TEMP-PC = #HOLD-PC - #HOLD-AID-PC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-PC
*S** ELSE
*S** ASSIGN #TEMP-PC = 0
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-PC
*S** END-IF
*S** /*
*S** /* Effective 2025, SC + PC may be negative
*S** /* cannot use for packaging/aid awarding
*S** IF ##AID-YEAR > '2024'
*S** IF #HOLD-FC > 9999999
*S** ASSIGN #TEMP-FC = 9999999
*S** ELSE
*S** COMPUTE #TEMP-FC = #HOLD-FC
*S** END-IF
*S** ELSE
*S** IF #TEMP-SC + #TEMP-PC > 9999999
*S** ASSIGN #TEMP-FC = 9999999
*S** ELSE
*S** COMPUTE #TEMP-FC = #TEMP-SC + #TEMP-PC
*S** END-IF
*S** END-IF
*S** IF #TEMP-FC GE #HOLD-AID-FC
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #HOLD-AID-FC
*S** ELSE
*S** COMPUTE #TEMP-AID-MN = #TEMP-AID-MN - #TEMP-FC
*S** END-IF
*S** IF #TEMP-AID-MN > #HOLD-NEED
*S** ASSIGN #HOLD-REM = 0
*S** ASSIGN #HOLD-OVR = #TEMP-AID-MN - #HOLD-NEED
*S** ELSE
*S** ASSIGN #HOLD-REM = #HOLD-NEED - #TEMP-AID-MN
*S** ASSIGN #HOLD-OVR = 0
*S** END-IF
*S**END-SUBROUTINE /* COMPUTE-DIFFERENCES
*S***
*S**END
*E
|