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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFVCNCLB
*S*** System : FINANCIER
*S*** Title : Batch Verification calc
*S*** Function : This program performs the Verification calc routine
*S*** for a group of students.
*S***
*S*** Copyright 1995 - 2009 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S***
*S** LOCAL USING WWREQIBD /* Input parameter PDA
*S** LOCAL USING WFAIDYRD /* Passed to object subprogram
*S** LOCAL USING WFAIDYRR /* Passed to object subprogram
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S***
*S** LOCAL USING WWCONST
*S***
*S** LOCAL
*S** 01 #MAX-READ(P3) INIT<50>
*S** 01 #MAX-WRITE(P3) INIT<10>
*S** 01 #ET-READ-COUNTER(P7)
*S** 01 #ET-WRITE-COUNTER(P7)
*S***
*S** 01 #READ-COUNTER(P7)
*S** 01 #BYPASS-COUNTER(P7)
*S** 01 #WRITE-COUNTER(P7)
*S***
*S** 01 #BYPASS-STUDENT(L)
*S***
*S** 01 #END-KEY
*S** 02 WF-AID-YEAR(A4)
*S** 02 WF-FAO(A2)
*S** 02 WW-STUDENT-ID(A9)
*S** 01 REDEFINE #END-KEY
*S** 02 #END-KEY-RED(A15)
*S***
*S** 01 #PASS-FIELDS
*S** 02 #STATUS-FUNCTION(A8)
*S** 02 #STATUS-DECISION(A1)
*S**END-DEFINE
*S***
*S*** Define printers, formats, headings
*S**DEFINE PRINTER(1)
*S**FORMAT(1) LS=80 PS=60 ZP=ON IS=OFF ES=OFF SG=OFF
*S**DEFINE PRINTER(3)
*S**FORMAT(3) LS=80 PS=60 ZP=ON IS=OFF ES=OFF SG=OFF
*S***
*S**AT TOP OF PAGE(1)
*S** WRITE(1) NOTITLE ##PGM-ID
*S** 25T '*** FINANCIER VERIFICATION ***'
*S** 71T 'Page' *PAGE-NUMBER(1)(EM=ZZ9)
*S** / *DATX(EM=LLL' 'DD', 'YYYY)
*S** 28T 'Processing Counts/Errors'
*S** 71T *TIMX(EM=HH':'II' 'AP)
*S**END-TOPPAGE
*S**AT TOP OF PAGE(3)
*S** WRITE(3) NOTITLE ##PGM-ID
*S** 25T '*** FINANCIER VERIFICATION ***'
*S** 71T 'Page' *PAGE-NUMBER(3)(EM=ZZ9)
*S** / *DATX(EM=LLL' 'DD', 'YYYY)
*S** 30T 'Limited Trial/Sample'
*S** 71T *TIMX(EM=HH':'II' 'AP)
*S** // 31T 'Aid Year:' ##DISP-AY
*S** / 36T ##DISP-LIT ##DISP-FAO
*S** /// 'StudentID Name'
*S** SKIP(3) 1
*S**END-TOPPAGE
*S***
*S**ASSIGN ##PGM-ID = *PROGRAM
*S**ASSIGN ##SYSTEM-INDICATOR = STDNT-SYS
*S**ASSIGN ##BYPASS-TRANSLATION = 'B'
*S***
*S**IF *DEVICE = 'BATCH' THEN
*S** SET CONTROL 'D' /* Set delimiter mode for batch input
*S**END-IF
*S***
*S*************************************************************************
*S***
*S*** Read and edit input parameters
*S** INPUT(AD=MITL'_' SG=ON IP=OFF ZP=OFF)
*S** 'Aid Year:' #INPUT-AID-YEAR /
*S** 'Term:' #INPUT-TERM /
*S** 'FAO:' #INPUT-FAO /
*S** 'Run Mode:' #INPUT-RUNMODE /
*S** 'Effective Date:' #INPUT-EFF-DATE /
*S** WRITE(1) ' '
*S** PERFORM REQUIRED-FIELD-BATCH WWREQIBD
*S** WRITE(1)
*S** 31T 'Aid Year:' ##DISP-AY /
*S** 36T ##DISP-LIT ##DISP-FAO ///
*S***
*S*** Set up keys for sequential file processing
*S** RESET WFAIDYRD
*S** ASSIGN WFAIDYRD.WF-AID-YEAR = ##AID-YEAR
*S** ASSIGN WFAIDYRD.WF-FAO = ##FAO-ID
*S** MOVE BY NAME WFAIDYRD TO #END-KEY
*S** MOVE ALL H'FF' TO #END-KEY.WW-STUDENT-ID
*S***
*S***
*S**PROG.
*S** REPEAT
*S** /*
*S** /* Read next AIDYEAR record
*S** MOVE 'NEXT' TO WWAOBJ.#FUNCTION
*S** PERFORM CALL-OBJECT-AIDYEAR
*S** /*
*S** /* End of records to be processed
*S** IF NOT WWAOBJ.#EXISTS OR
*S** WFAIDYRD-ID > #END-KEY-RED
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** /*
*S** ADD 1 TO #READ-COUNTER
*S** ADD 1 TO #ET-READ-COUNTER
*S** IF #ET-READ-COUNTER > #MAX-READ
*S** PERFORM COMMIT-OR-BACKOUT
*S** END-IF
*S** /*
*S** MOVE WFAIDYRD.WW-STUDENT-ID TO ##STUDENT-ID
*S** PERFORM GET-STUDENT-INFO
*S** RESET #BYPASS-STUDENT
*S** /*
*S** /* Perform Decision status lookup
*S** MOVE 'VerfCalc' TO #STATUS-FUNCTION
*S** PERFORM GET-STATUS-FUNCTION #STATUS-FUNCTION #STATUS-DECISION
*S** /*
*S** /* Perform Verification calc
*S** IF #STATUS-DECISION = 'Y'
*S** PERFORM CALC-VERIFICATION #BYPASS-STUDENT
*S** IF NOT #BYPASS-STUDENT
*S** ADD 1 TO #WRITE-COUNTER
*S** ADD 1 TO #ET-WRITE-COUNTER
*S** IF #ET-WRITE-COUNTER > #MAX-WRITE
*S** PERFORM COMMIT-OR-BACKOUT
*S** END-IF
*S** END-IF
*S** /*
*S** /* If limited run, print report line
*S** IF #INPUT-RUNMODE = 'TRIAL' OR = 'SAMPLE'
*S** IF NOT #BYPASS-STUDENT
*S** COMPRESS 'Verification performed:' ##MSG INTO ##MSG
*S** WITH DELIMITER ' '
*S** END-IF
*S** WRITE(3) ##SID ##COMP-NAME(AL=20) ##MSG
*S** END-IF
*S** END-IF
*S** /*
*S** /* Check for limited-run maximum
*S** IF (#INPUT-RUNMODE = 'TRIAL' OR = 'SAMPLE')
*S** AND #INPUT-LIMIT-COUNT > 0
*S** IF #WRITE-COUNTER GE #INPUT-LIMIT-COUNT
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** END-IF
*S** END-REPEAT
*S***
*S*** Issue final END TRANSACTION
*S** PERFORM COMMIT-OR-BACKOUT
*S***
*S*** Print job statistics
*S** COMPUTE #BYPASS-COUNTER = #READ-COUNTER - #WRITE-COUNTER
*S** WRITE(1)
*S** 15T 'FINANCIER processing:' /
*S** 17T 'AidYear records read:'
*S** (I) 55T #READ-COUNTER (EM=Z,ZZZ,ZZ9) //
*S** 17T 'Applications verified:'
*S** (I) 55T #WRITE-COUNTER (EM=Z,ZZZ,ZZ9) /
*S** 17T 'AidYear records bypassed:'
*S** (I) 55T #BYPASS-COUNTER (EM=Z,ZZZ,ZZ9) /
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-AIDYEAR
*S*************************************************************************
*S** /*
*S** /* Call WF-AIDYEAR file object subprogram
*S** CALLNAT 'WFAIDYRO' WW-GDA
*S** WFAIDYRD
*S** WFAIDYRD-ID
*S** WFAIDYRR
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-AIDYEAR
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMMIT-OR-BACKOUT
*S*************************************************************************
*S** /*
*S** /* Periodically issue END TRANSACTION
*S** IF #INPUT-RUNMODE = 'TRIAL'
*S** BACKOUT TRANSACTION
*S** ELSE
*S** END TRANSACTION
*S** END-IF
*S** RESET #ET-READ-COUNTER #ET-WRITE-COUNTER
*S**END-SUBROUTINE /* COMMIT-OR-BACKOUT
*S**END
|
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFVCNCLB
*S*** System : FINANCIER
*S*** Title : Batch Verification calc
*S*** Function : This program performs the Verification calc routine
*S*** for a group of students.
*S***
*S*** Copyright 1995 - 2009 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S***
*S** LOCAL USING WWREQIBD /* Input parameter PDA
*S** LOCAL USING WFAIDYRD /* Passed to object subprogram
*S** LOCAL USING WFAIDYRR /* Passed to object subprogram
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S***
*S** LOCAL USING WWCONST
*S***
*S** LOCAL
*S** 01 #MAX-READ(P3) INIT<50>
*S** 01 #MAX-WRITE(P3) INIT<10>
*S** 01 #ET-READ-COUNTER(P7)
*S** 01 #ET-WRITE-COUNTER(P7)
*S***
*S** 01 #READ-COUNTER(P7)
*S** 01 #BYPASS-COUNTER(P7)
*S** 01 #WRITE-COUNTER(P7)
*S***
*S** 01 #BYPASS-STUDENT(L)
*S***
*S** 01 #END-KEY
*S** 02 WF-AID-YEAR(A4)
*S** 02 WF-FAO(A2)
*S** 02 WW-STUDENT-ID(A9)
*S** 01 REDEFINE #END-KEY
*S** 02 #END-KEY-RED(A15)
*S***
*S** 01 #PASS-FIELDS
*S** 02 #STATUS-FUNCTION(A8)
*S** 02 #STATUS-DECISION(A1)
*S**END-DEFINE
*S***
*S*** Define printers, formats, headings
*S**DEFINE PRINTER(1)
*S**FORMAT(1) LS=80 PS=60 ZP=ON IS=OFF ES=OFF SG=OFF
*S**DEFINE PRINTER(3)
*S**FORMAT(3) LS=80 PS=60 ZP=ON IS=OFF ES=OFF SG=OFF
*S***
*S**AT TOP OF PAGE(1)
*S** WRITE(1) NOTITLE ##PGM-ID
*S** 25T '*** FINANCIER VERIFICATION ***'
*S** 71T 'Page' *PAGE-NUMBER(1)(EM=ZZ9)
*S** / *DATX(EM=LLL' 'DD', 'YYYY)
*S** 28T 'Processing Counts/Errors'
*S** 71T *TIMX(EM=HH':'II' 'AP)
*S**END-TOPPAGE
*S**AT TOP OF PAGE(3)
*S** WRITE(3) NOTITLE ##PGM-ID
*S** 25T '*** FINANCIER VERIFICATION ***'
*S** 71T 'Page' *PAGE-NUMBER(3)(EM=ZZ9)
*S** / *DATX(EM=LLL' 'DD', 'YYYY)
*S** 30T 'Limited Trial/Sample'
*S** 71T *TIMX(EM=HH':'II' 'AP)
*S** // 31T 'Aid Year:' ##DISP-AY
*S** / 36T ##DISP-LIT ##DISP-FAO
*S** /// 'StudentID Name'
*S** SKIP(3) 1
*S**END-TOPPAGE
*S***
*S**ASSIGN ##PGM-ID = *PROGRAM
*S**ASSIGN ##SYSTEM-INDICATOR = STDNT-SYS
*S**ASSIGN ##BYPASS-TRANSLATION = 'B'
*S***
*S**IF *DEVICE = 'BATCH' THEN
*S** SET CONTROL 'D' /* Set delimiter mode for batch input
*S**END-IF
*S***
*S*************************************************************************
*S***
*S*** Read and edit input parameters
*S** INPUT(AD=MITL'_' SG=ON IP=OFF ZP=OFF)
*S** 'Aid Year:' #INPUT-AID-YEAR /
*S** 'Term:' #INPUT-TERM /
*S** 'FAO:' #INPUT-FAO /
*S** 'Run Mode:' #INPUT-RUNMODE /
*S** 'Effective Date:' #INPUT-EFF-DATE /
*S** WRITE(1) ' '
*S** PERFORM REQUIRED-FIELD-BATCH WWREQIBD
*S** WRITE(1)
*S** 31T 'Aid Year:' ##DISP-AY /
*S** 36T ##DISP-LIT ##DISP-FAO ///
*S***
*S*** Set up keys for sequential file processing
*S** RESET WFAIDYRD
*S** ASSIGN WFAIDYRD.WF-AID-YEAR = ##AID-YEAR
*S** ASSIGN WFAIDYRD.WF-FAO = ##FAO-ID
*S** MOVE BY NAME WFAIDYRD TO #END-KEY
*S** MOVE ALL H'FF' TO #END-KEY.WW-STUDENT-ID
*S***
*S***
*S**PROG.
*S** REPEAT
*S** /*
*S** /* Read next AIDYEAR record
*S** MOVE 'NEXT' TO WWAOBJ.#FUNCTION
*S** PERFORM CALL-OBJECT-AIDYEAR
*S** /*
*S** /* End of records to be processed
*S** IF NOT WWAOBJ.#EXISTS OR
*S** WFAIDYRD-ID > #END-KEY-RED
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** /*
*S** /* Beginning 2014, no batch verification
*S** IF ##AID-YEAR > '2013'
*S** WRITE(1)
*S** 15T 'Batch verification not available for:' ##DISP-AY /
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** /*
*S** ADD 1 TO #READ-COUNTER
*S** ADD 1 TO #ET-READ-COUNTER
*S** IF #ET-READ-COUNTER > #MAX-READ
*S** PERFORM COMMIT-OR-BACKOUT
*S** END-IF
*S** /*
*S** MOVE WFAIDYRD.WW-STUDENT-ID TO ##STUDENT-ID
*S** PERFORM GET-STUDENT-INFO
*S** RESET #BYPASS-STUDENT
*S** /*
*S** /* Perform Decision status lookup
*S** MOVE 'VerfCalc' TO #STATUS-FUNCTION
*S** PERFORM GET-STATUS-FUNCTION #STATUS-FUNCTION #STATUS-DECISION
*S** /*
*S** /* Perform Verification calc
*S** IF #STATUS-DECISION = 'Y'
*S** PERFORM CALC-VERIFICATION #BYPASS-STUDENT
*S** IF NOT #BYPASS-STUDENT
*S** ADD 1 TO #WRITE-COUNTER
*S** ADD 1 TO #ET-WRITE-COUNTER
*S** IF #ET-WRITE-COUNTER > #MAX-WRITE
*S** PERFORM COMMIT-OR-BACKOUT
*S** END-IF
*S** END-IF
*S** /*
*S** /* If limited run, print report line
*S** IF #INPUT-RUNMODE = 'TRIAL' OR = 'SAMPLE'
*S** IF NOT #BYPASS-STUDENT
*S** COMPRESS 'Verification performed:' ##MSG INTO ##MSG
*S** WITH DELIMITER ' '
*S** END-IF
*S** WRITE(3) ##SID ##COMP-NAME(AL=20) ##MSG
*S** END-IF
*S** END-IF
*S** /*
*S** /* Check for limited-run maximum
*S** IF (#INPUT-RUNMODE = 'TRIAL' OR = 'SAMPLE')
*S** AND #INPUT-LIMIT-COUNT > 0
*S** IF #WRITE-COUNTER GE #INPUT-LIMIT-COUNT
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** END-IF
*S** END-REPEAT
*S***
*S*** Issue final END TRANSACTION
*S** PERFORM COMMIT-OR-BACKOUT
*S***
*S*** Print job statistics
*S** COMPUTE #BYPASS-COUNTER = #READ-COUNTER - #WRITE-COUNTER
*S** WRITE(1)
*S** 15T 'FINANCIER processing:' /
*S** 17T 'AidYear records read:'
*S** (I) 55T #READ-COUNTER (EM=Z,ZZZ,ZZ9) //
*S** 17T 'Applications verified:'
*S** (I) 55T #WRITE-COUNTER (EM=Z,ZZZ,ZZ9) /
*S** 17T 'AidYear records bypassed:'
*S** (I) 55T #BYPASS-COUNTER (EM=Z,ZZZ,ZZ9) /
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-AIDYEAR
*S*************************************************************************
*S** /*
*S** /* Call WF-AIDYEAR file object subprogram
*S** CALLNAT 'WFAIDYRO' WW-GDA
*S** WFAIDYRD
*S** WFAIDYRD-ID
*S** WFAIDYRR
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-AIDYEAR
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMMIT-OR-BACKOUT
*S*************************************************************************
*S** /*
*S** /* Periodically issue END TRANSACTION
*S** IF #INPUT-RUNMODE = 'TRIAL'
*S** BACKOUT TRANSACTION
*S** ELSE
*S** END TRANSACTION
*S** END-IF
*S** RESET #ET-READ-COUNTER #ET-WRITE-COUNTER
*S**END-SUBROUTINE /* COMMIT-OR-BACKOUT
*S**END
|