C:\Users\skylight120\Dropbox\WolffPack\intranet_access\Releases\2206-01\old\wfvrf23p.txt
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFVRF23P
*S*** System : FINANCIER
*S*** Title : 2022-23 Verification
*S*** Function : This program maintains the Verification
*S*** Overview for the 2022-23 processing year.
*S***
*S***
*S***
*S*** Copyright 1995 - 2022 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S***
*S** LOCAL USING WFVER23D /* Passed to object subprogram
*S** LOCAL USING WFVER23R /* Passed to object subprogram
*S** LOCAL USING WFVER23S /* Shadow file
*S** LOCAL USING WFCPC23D /* Passed to object subprogram
*S** LOCAL USING WFCPC23R /* Passed to object subprogram
*S** LOCAL USING WFCPC23S /* Shadow file
*S** LOCAL USING WFFEC23D /* Passed to object subprogram
*S** LOCAL USING WFFEC23R /* Passed to object subprogram
*S** LOCAL USING WFFEC23S /* Shadow file
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S***
*S** LOCAL USING WWCONST /* Constants
*S** LOCAL USING WWDIALDA /* Common data for dialog objects.
*S** LOCAL USING WWENVIRA /* Used to capture/restore previous environment.
*S** LOCAL USING WWKEYLDA /* Used to set function keys and names.
*S** LOCAL USING WWVALLDA /* Used by valid values/edit mask routine
*S** LOCAL
*S****SAG DEFINE EXIT PROGRAM-CONSTANTS
*S** 01 #PGM-YEAR(A4) INIT<'2023'>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT SECURITY-PGM
*S** /*
*S** /* Security program exit
*S** 01 #SECURITY-PROGRAM(A8) INIT<'WFVRFNNP'>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT EVENT-HISTORY
*S** /*
*S** /* Literals utilized by Event History routine
*S** 01 #EVENT-TYPE(A5) CONST<' '>
*S** 01 #EVENT-DESC(A40) CONST<' '>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT REQUIREMENTS
*S** /*
*S** /* Variables Requirement routine
*S** 01 #REQMNTS(3)
*S** 02 #REQMNT-TYPE(A1) /* (A/Application, D/Disbursement)
*S** INIT (1)<'A'> (2)<'A'> (3)<' '>
*S** 02 #REQMNT-DOC(A6) /* Document mnemonic
*S** INIT (1)<'S-TAX'> (2)<'P-TAX'> (3)<' '>
*S** 02 #REQMNT-PD(A2) /* (ST/Student, AY/Aid Year)
*S** INIT (1)<'AY'> (2)<'AY'> (3)<' '>
*S****SAG END-EXIT
*S***
*S*** Scalar Constants.
*S** 01 #SUB-PARM(A1)
*S***
*S*** Miscellaneous Variables.
*S** 01 #NEXT(L) /* Next processing selected
*S** 01 #DISPLAYED-KEY(A11) /* Last record found
*S** 01 #TYPE-POS(P3)
*S** 01 #KEY(A11) /* Key field copied from map.
*S** 01 #NEW-OBJECT(L) /* GET was done on different object
*S** 01 #BYPASS-OBJECT(L) /* I/O was done via subprogram
*S** 01 #BYPASS-INPUT(L) /* do not perform input statement
*S** 01 #NULL-KEY(A11)
*S****SAG DEFINE EXIT LOCAL-DATA
*S** 01 #SUBPGM(A8)
*S***
*S** 01 #TAB-S(A1)
*S** 01 #TAB-P(A1)
*S** 01 #TAB-D(A1)
*S** 01 #VER-MSG(A30)
*S***
*S** 01 #ORIG-VER(A1)
*S** 01 #IRSREQ-STU(A2)
*S** 01 #IRSREQ-PAR(A2)
*S** 01 #FE-S-UNTXD(A10)
*S** 01 #FE-P-UNTXD(A10)
*S** 01 #FE-S-UNTXD-N(N8)
*S** 01 #FE-P-UNTXD-N(N8)
*S** 01 #FE-S-UNTXD-CV(C)
*S** 01 #FE-P-UNTXD-CV(C)
*S***
*S** 01 #HOLD-ACTION(A1)
*S** 01 #HOLD-FUNCTION(A15)
*S** 01 #BYPASS-STUDENT(L)
*S** 01 #DEP-STAT(A1)
*S***
*S** 01 #VER-TRACK-2(A2)
*S** 01 #FED-TRACK(A2)
*S***
*S** 01 #S-FILER(L)
*S** 01 #P-FILER(L)
*S***
*S**LOCAL USING WFISX23D
*S****SAG END-EXIT
*S**END-DEFINE
*S***
*S***
*S*** Define Formats
*S**FORMAT PS=23 KD=ON LS=133 ZP=OFF
*S***
*S**PERFORM INITIALIZATIONS
*S***
*S*************************************************************************
*S***
*S**PROG.
*S**REPEAT /* until exit action
*S** /*
*S**NEW-SCREEN.
*S** REPEAT /* Escape this repeat with indexes set as desired.
*S****SAG DEFINE EXIT AFTER-NEW-SCREEN
*S** /*
*S** IF ##AID-YEAR NE #PGM-YEAR
*S** ESCAPE BOTTOM(PROG.)
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /* Security / Required fields
*S** /* Perform first time and/or new student (set via Selection)
*S** IF #DISPLAYED-KEY = #NULL-KEY
*S** MOVE 'WFVER23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM VERIFY-2223-SECURITY VERIFY-2223-CNTL-VARS
*S** RESET INITIAL VERIFY-2223-LOGICALS
*S** MOVE 'WFCPC23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM CPS-CMP-2223-SECURITY CPS-CMP-2223-CNTL-VARS
*S** RESET INITIAL CPS-CMP-2223-CNTL-VARS
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S****SAG DEFINE EXIT AFTER-SECURITY
*S** MOVE 'WFFEC23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM FED-CMP-2223-SECURITY FED-CMP-2223-CNTL-VARS
*S** RESET INITIAL FED-CMP-2223-LOGICALS
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S** ASSIGN #FE-S-UNTXD-CV = #FE-P-UNTXD-CV
*S****SAG END-EXIT
*S** /*
*S** PERFORM REQUIRED-FIELD-CHECK REQUIRED-FIELD(*)
*S** PERFORM SET-KEYS
*S** END-IF
*S** /*
*S** /* Load appropriate function
*S** IF #ADD-OBJECT
*S** ASSIGN #FUNCTION = 'STORE'
*S** RESET #ADD-OBJECT
*S** ELSE
*S** IF #DISPLAYED-KEY NE #KEY
*S** OR #KEY = #NULL-KEY
*S** ASSIGN #FUNCTION = 'GET'
*S** ELSE
*S** ASSIGN #FUNCTION = 'UPDATE'
*S** END-IF
*S** END-IF
*S****SAG DEFINE EXIT BEFORE-CALL-OBJECT
*S** /*
*S** /* Load key info from GDA, allows selection criteria
*S** /* to be properly processed
*S** MOVE ##STUDENT-ID TO WFVER23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFVER23D.WF-FAO
*S****SAG END-EXIT
*S** /*
*S** /* Perform object I/O subprogram
*S** IF #BYPASS-OBJECT
*S** RESET #BYPASS-OBJECT
*S** ELSE
*S** PERFORM CALL-OBJECT
*S** END-IF
*S****SAG DEFINE EXIT AFTER-CALL-OBJECT
*S** /*
*S** /* Get ISIR and CPS information for display
*S** IF WWAOBJ.#FUNCTION = 'GET'
*S** PERFORM GET-ISIR-IRS-REQUEST #IRSREQ-STU #IRSREQ-PAR
*S** /*
*S** MOVE ##STUDENT-ID TO WFCPC23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFCPC23D.WF-FAO
*S** PERFORM CALL-OBJECT-CPS-CMP
*S** END-IF
*S** /*
*S** /* Get additional ISIR fields
*S** IF WWAOBJ.#FUNCTION = 'GET'
*S** PERFORM EXTRACT-ISIR-2223 WFISX23D
*S** END-IF
*S** /*
*S** COMPUTE #FE-S-UNTXD-N = WFFEC23D.WF-FE-S-U-DST-PEN
*S** + WFFEC23D.WF-FE-S-A-EDCR
*S** + WFFEC23D.WF-FE-S-U-IRA
*S** + WFFEC23D.WF-FE-S-U-INT
*S** IF #FE-S-UNTXD-N > 99999999
*S** MOVE 99999999 TO #FE-S-UNTXD-N
*S** END-IF
*S** MOVE EDITED #FE-S-UNTXD-N(EM=ZZ,ZZZ,ZZZ) TO #FE-S-UNTXD
*S** COMPUTE #FE-P-UNTXD-N = WFFEC23D.WF-FE-P-U-DST-PEN
*S** + WFFEC23D.WF-FE-P-A-EDCR
*S** + WFFEC23D.WF-FE-P-U-IRA
*S** + WFFEC23D.WF-FE-P-U-INT
*S** IF #FE-P-UNTXD-N > 99999999
*S** MOVE 99999999 TO #FE-P-UNTXD-N
*S** END-IF
*S** MOVE EDITED #FE-P-UNTXD-N(EM=ZZ,ZZZ,ZZZ) TO #FE-P-UNTXD
*S** /*
*S** /* Get dependency status
*S** PERFORM GET-DEPENDENCY #DEP-STAT
*S****SAG END-EXIT
*S** /*
*S** /* Load shadow file definitions for appropriate map
*S** IF NOT #CONFIRM-PURGE
*S** MOVE LOAD TO #SUB-PARM
*S** PERFORM CALL-EXT-SUB
*S** END-IF
*S** /*
*S** /* Assign appropriate message
*S** IF ##MSG = SPACE
*S** DECIDE ON FIRST VALUE OF #FUNCTION
*S** VALUE 'GET'
*S** IF #ADD-OBJECT
*S** COMPRESS 'This information not currently stored for #TEMP,'
*S** 'ready to add' INTO ##MSG
*S** ELSE
*S** COMPRESS 'To modify the current #TEMP information,'
*S** 'make changes and press ENTER' INTO ##MSG
*S** END-IF
*S** VALUE 'NEXT'
*S** COMPRESS 'Next #TEMP information has been displayed'
*S** INTO ##MSG
*S** VALUE 'UPDATE'
*S** COMPRESS '#TEMP information has been modified'
*S** INTO ##MSG
*S** VALUE 'STORE'
*S** COMPRESS '#TEMP information has been added'
*S** INTO ##MSG
*S** VALUE 'DELETE'
*S** IF #CONFIRM-PURGE
*S** COMPRESS '#TEMP information has been purged'
*S** INTO ##MSG
*S** ELSE
*S** COMPRESS 'Press ENTER to confirm purge'
*S** INTO ##MSG
*S** END-IF
*S** ANY
*S** EXAMINE ##MSG FOR '#TEMP' AND REPLACE WITH ##SYSTEM-DATA-TYPE
*S** EXAMINE ##MSG FOR ##SYSTEM-DATA-TYPE GIVING POSITION #TYPE-POS
*S** IF #TYPE-POS = 1
*S** EXAMINE SUBSTRING(##MSG,1,1) AND TRANSLATE INTO UPPER CASE
*S** END-IF
*S** NONE
*S** IGNORE
*S** END-DECIDE
*S** END-IF
*S** SET CONTROL 'WB'
*S** /*
*S** /* INPUT processing
*S****SAG DEFINE EXIT BEFORE-INPUT
*S** /*
*S** /* Protect untaxed income total because components must
*S** /* be entered - overlay can only handle components
*S** MOVE PROTECTED-ATTR TO VE-S-UNTAXED-CV
*S** MOVE PROTECTED-ATTR TO VE-P-UNTAXED-CV
*S** /*
*S** /* Protect tracking group specific fields
*S** /* if not appropriate tracking group
*S** ASSIGN #FED-TRACK = SUBSTR(#VER-TRACK,3,2)
*S** ASSIGN #VER-TRACK-2 = #FED-TRACK
*S** /*
*S** /* If student selected for institutional verification,
*S** /* use institutional selector to identify group
*S** IF WFVER23D.WF-VE-INS-REQD NE ' '
*S** COMPRESS 'V' WFVER23D.WF-VE-INS-REQD
*S** INTO #VER-TRACK-2 LEAVING NO SPACE
*S** END-IF
*S** /*
*S** /* Protect AGI or Income fields based on Fed tax filing status
*S** IF WFFEC23D.WF-FE-S-FILER = 'F' OR = 'E'
*S** ASSIGN #S-FILER = TRUE
*S** END-IF
*S** IF WFFEC23D.WF-FE-P-FILER = 'F' OR = 'E'
*S** ASSIGN #P-FILER = TRUE
*S** END-IF
*S** /*
*S** DECIDE ON FIRST VALUE OF #VER-TRACK-2
*S** VALUE 'V1'
*S** MOVE PROTECTED-ATTR TO VE-S-SEP-CV
*S** MOVE NORMAL-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE NORMAL-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** IF #S-FILER
*S** MOVE NORMAL-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** ELSE
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE NORMAL-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** END-IF
*S** IF #P-FILER
*S** MOVE NORMAL-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** ELSE
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE NORMAL-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** END-IF
*S** VALUE 'V4'
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** MOVE NORMAL-ATTR TO VE-S-SEP-CV
*S** MOVE PROTECTED-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE PROTECTED-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** VALUE 'V5'
*S** MOVE NORMAL-ATTR TO VE-S-SEP-CV
*S** MOVE NORMAL-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE NORMAL-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** IF #S-FILER
*S** MOVE NORMAL-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** ELSE
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE NORMAL-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** END-IF
*S** IF #P-FILER
*S** MOVE NORMAL-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** ELSE
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE NORMAL-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** END-IF
*S** NONE
*S** IGNORE
*S** END-DECIDE
*S****SAG END-EXIT
*S** /*
*S** /* Input Map
*S** IF NOT #BYPASS-INPUT
*S** INPUT WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFVRF23M'
*S** END-IF
*S** /*
*S** RESET ##MSG
*S****SAG DEFINE EXIT AFTER-INPUT
*S** /*
*S** /* If Expand key selected, fetch student and/or
*S** /* parent verification detail
*S** /* (only if on appropriate 'tab' field)
*S** IF *PF-KEY = WWKEYLDA.#EXPAND-KEY
*S** IF *CURS-FIELD = POS(#TAB-S) /* Student data
*S** MOVE 'WFV23SVN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** IF *CURS-FIELD = POS(#TAB-P) /* Parent data
*S** MOVE 'WFV23PVN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** IF *CURS-FIELD = POS(#TAB-D) /* Detail data
*S** MOVE 'WFV23DTN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** REINPUT 'Not an expandable field' ALARM
*S** END-IF
*S** END-IF
*S** END-IF
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S** ASSIGN #FE-S-UNTXD-CV = #FE-P-UNTXD-CV
*S** ESCAPE TOP
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /*
*S** /* Check standard PF-Keys
*S****SAG DEFINE EXIT BEFORE-STD-KEY-PROCESSING
*S** /*
*S** /* Processing to be performed prior to 'standard key' processing
*S** /* Trigger year-specific routing program exit
*S** IF *PF-KEY = WWKEYLDA.#RETURN-KEY
*S** MOVE 'EXIT' TO ##PASS-KEY
*S** END-IF
*S****SAG END-EXIT
*S** INCLUDE WWSTDKEY
*S** /*
*S** /* Trap invalid PF-Keys.
*S** IF *PF-KEY = 'ENTR' OR = WWKEYLDA.#SELECT-KEY
*S****SAG DEFINE EXIT VALID-PFKEYS
*S** OR = WWKEYLDA.#EXPAND-KEY
*S** OR = WWKEYLDA.#CALC-KEY
*S****SAG END-EXIT
*S** IGNORE
*S** ELSE
*S** REINPUT 'Invalid program function key' ALARM
*S** END-IF
*S** /*
*S** /* Perform edit routine
*S** RESET INITIAL #FAIL-EDIT
*S** MOVE EDIT TO #SUB-PARM
*S** PERFORM CALL-EXT-SUB
*S** IF #FAIL-EDIT
*S** REINPUT FULL 'Edit errors occurred'
*S** MARK #MARK-FIELD ALARM
*S** END-IF
*S** /*
*S** /* Hard-coded edit for required fields to allow
*S** /* for field highlighting and REINPUT statement
*S** /* (not available in CALL-OBJECT where calc is invoked)
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** IF #VER-TRACK-2 = 'V4' OR
*S** #VER-TRACK-2 = 'V5'
*S** IF WFVER23D.WF-VE-S-SEP NOT = 'Y'
*S** MOVE HI-LITE-ATTR TO VE-S-SEP-CV
*S** ASSIGN #MARK-FIELD = POS(WFVER23D.WF-VE-S-SEP)
*S** ASSIGN #FAIL-EDIT = TRUE
*S** COMPRESS ' No verification - SEP required for '
*S** #VER-TRACK-2 'tracking group'
*S** INTO ##MSG
*S** END-IF
*S** END-IF
*S** IF #FAIL-EDIT
*S** REINPUT FULL ##MSG
*S** MARK #MARK-FIELD ALARM
*S** END-IF
*S** END-IF
*S** /*
*S*************************************************************************
*S**DEFINE SUBROUTINE NEW-SCREEN
*S*************************************************************************
*S** /*
*S** /* Subroutine to allow escape from screen loop
*S** ESCAPE BOTTOM(NEW-SCREEN.) IMMEDIATE
*S**END-SUBROUTINE /* NEW-SCREEN
*S** /*
*S** END-REPEAT /* on NEW-SCREEN
*S**END-REPEAT /* on Repeat of Program.
*S***
*S**PERFORM FINAL-PROCESSING
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-EXT-SUB
*S*************************************************************************
*S** /*
*S** /* Call Map specific external subroutine
*S** PERFORM WFVRF23M-MASK-EDITS #SUB-PARM WWVALLDA
*S** WFVER23D WFVER23D-ID WFVER23R WFVER23S
*S** WFCPC23D WFCPC23D-ID WFCPC23R WFCPC23S
*S** WFFEC23D WFFEC23D-ID WFFEC23R WFFEC23S
*S**END-SUBROUTINE /* CALL-EXT-SUB
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT
*S*************************************************************************
*S** /*
*S** /* Prior to processing object
*S** IF WWAOBJ.#FUNCTION = 'DELETE'
*S** RESET #CONFIRM-PURGE
*S** END-IF
*S****SAG DEFINE EXIT BEFORE-OBJECT-CALL
*S** /*
*S** /* If Verification Status manually updated, perform indirect updates
*S** IF WWAOBJ.#FUNCTION = 'STORE' OR = 'UPDATE'
*S** IF WFVER23D.WF-VE-VER NE #ORIG-VER
*S** IF WFVER23D.WF-VE-VER = 'P' OR = 'T'
*S** ASSIGN WFVER23D.WF-VE-VER-FED = 'V'
*S** ASSIGN WFVER23D.WF-VE-VER-TRAN = WFCPC23D.WF-CP-FED-ID3
*S** ASSIGN WFVER23D.WF-VE-VER-DATE = *DATX
*S** ASSIGN WFVER23D.WF-VE-VER-REVER = 'M'
*S** END-IF
*S** END-IF
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /* Assign #KEY to equal the input fields
*S** MOVE BY NAME WFVER23D TO WFVER23D-ID.STRUCTURE
*S** ASSIGN #KEY = WFVER23D-ID
*S** /*
*S** /* Invoke subprogram to process object
*S** PERFORM CALL-OBJECT-IO
*S** /*
*S** IF WWAOBJ.#FUNCTION = 'GET' AND
*S** NOT WWAOBJ.#EXISTS
*S** ASSIGN #ADD-OBJECT = TRUE
*S** END-IF
*S** /*
*S** ASSIGN #DISPLAYED-KEY = WFVER23D-ID
*S** /*
*S** /* Reset #KEY if next record displayed
*S** IF #FUNCTION = 'NEXT'
*S** ASSIGN #KEY = #DISPLAYED-KEY
*S** END-IF
*S** /*
*S** /* Set logical for update processing
*S** IF #FUNCTION = 'STORE'
*S** OR = 'UPDATE'
*S** ASSIGN #UPDATE-PERFORMED = TRUE
*S** END-IF
*S** /*
*S** /* Update performed
*S****SAG DEFINE EXIT BEFORE-UPDATE-PERFORMED-CHECK
*S** /*
*S** /* On each I/O, capture "original" Verification Status for later use
*S** MOVE WFVER23D.WF-VE-VER TO #ORIG-VER
*S** /*
*S** /* Reset verification calc message -- it will be set in the calc
*S** /* If requested, call the calc
*S** RESET #VER-MSG
*S** IF WWAOBJ.#FUNCTION = 'UPDATE' OR = 'STORE'
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** MOVE WFCPC23D.WF-CP-FED-ID3 TO ##PASS-TEMP
*S** PERFORM CALC-VERIFICATION #BYPASS-STUDENT
*S** IF #BYPASS-STUDENT NOT = TRUE
*S** MOVE ##MSG TO #VER-MSG
*S** MOVE 'Verification calculation performed' TO ##MSG
*S** END-IF
*S** /*
*S** /* Reread verification record updated in calc
*S** MOVE #FUNCTION TO #HOLD-FUNCTION
*S** MOVE 'GET' TO #FUNCTION
*S** CALLNAT 'WFVER23O' WW-GDA
*S** WFVER23D
*S** WFVER23D-ID
*S** WFVER23R
*S** WWAOBJ
*S** MOVE #HOLD-FUNCTION TO #FUNCTION
*S** END-IF
*S** END-IF
*S** /*
*S** /* Get current Federal record
*S** MOVE #FUNCTION TO #HOLD-FUNCTION
*S** ASSIGN #FUNCTION = 'GET'
*S** MOVE ##STUDENT-ID TO WFFEC23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFFEC23D.WF-FAO
*S** PERFORM CALL-OBJECT-FED-CMP
*S** MOVE #HOLD-FUNCTION TO #FUNCTION
*S****SAG END-EXIT
*S** IF #UPDATE-PERFORMED THEN
*S** CALLNAT 'WWDUTILN' WW-GDA WWVALLDA
*S** PERFORM ADD-EVENT #EVENT-TYPE #EVENT-DESC
*S** END TRANSACTION
*S** RESET #UPDATE-PERFORMED #ACTION #ADD-OBJECT #DATA-MODIFIED
*S** END-IF
*S**END-SUBROUTINE /* CALL-OBJECT
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-IO
*S*************************************************************************
*S***
*S** CALLNAT 'WFVER23O' WW-GDA
*S** WFVER23D
*S** WFVER23D-ID
*S** WFVER23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-IO
*S***
*S**************************************************************************
*S**DEFINE SUBROUTINE FIELD-SECURITY-OVERRIDE
*S**************************************************************************
*S** /*
*S** /* Set display-only fields to appropriate security
*S** /* Normal security will have set to modifiable
*S** /*
*S** MOVE 'WFFEC23D' TO ##FILE-ID
*S** PERFORM FILE-SECURITY-LOOKUP
*S** MOVE ##FIELD-SEC-CV TO FE-S-FILER-CV
*S** FE-S-FAM-SIZE-CV
*S** FE-S-FAM-COL-CV
*S** FE-S-AGI-CV
*S** FE-S-FED-TAX-CV
*S** FE-S-ST-INC-CV
*S** FE-S-SP-INC-CV
*S** FE-P-FILER-CV
*S** FE-P-FAM-SIZE-CV
*S** FE-P-FAM-COL-CV
*S** FE-P-AGI-CV
*S** FE-P-FED-TAX-CV
*S** FE-P-P1-INC-CV
*S** FE-P-P2-INC-CV
*S**END-SUBROUTINE /* FIELD-SECURITY-OVERRIDE
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE FINAL-PROCESSING
*S*************************************************************************
*S** /*
*S** INCLUDE WWEND /* Restore environment.
*S**END-SUBROUTINE /* FINAL-PROCESSING
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE INITIALIZATIONS
*S*************************************************************************
*S** /*
*S** INCLUDE WWBEGIN /* Capture environment
*S** SET CONTROL 'WBM' /* Set window size/base
*S** /*
*S** /* Specify which PF-KEYS are valid, start by resetting all keys,
*S** /* then assign desired keys using RESET INITIAL.
*S** INCLUDE WWPFSTD /* Standard PF-Keys.
*S****SAG DEFINE EXIT SET-PF-KEYS
*S***
*S*** Set additional PF Keys
*S** RESET INITIAL WWKEYLDA.#SELECT-KEY
*S** WWKEYLDA.#EXPAND-KEY
*S** WWKEYLDA.#NOTEPAD-KEY
*S** WWKEYLDA.#CALC-KEY
*S****SAG END-EXIT
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S** INCLUDE WWSETKEY /* Set specified keys
*S** INCLUDE WWSETHLP /* Set Help keys
*S**END-SUBROUTINE /* SET-KEY
*S****SAG DEFINE EXIT MISCELLANEOUS-SUBROUTINES
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-CPS-CMP
*S*************************************************************************
*S***
*S*** Call object subprogram
*S** CALLNAT 'WFCPC23O' WW-GDA
*S** WFCPC23D
*S** WFCPC23D-ID
*S** WFCPC23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-CPS-CMP
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-FED-CMP
*S*************************************************************************
*S***
*S*** Call object subprogram
*S** CALLNAT 'WFFEC23O' WW-GDA
*S** WFFEC23D
*S** WFFEC23D-ID
*S** WFFEC23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-FED-CMP
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE PROCESS-VER-SUBPGM
*S*************************************************************************
*S***
*S*** Call expand subprogram
*S** CALLNAT #SUBPGM WW-GDA #DISPLAYED-KEY #ADD-OBJECT
*S** WFVER23D WFVER23D-ID WFVER23R WFVER23S
*S** WFFEC23D WFFEC23D-ID WFFEC23R WFFEC23S
*S** WWAOBJ
*S**END-SUBROUTINE /* PROCESS-VER-SUBPGM
*S****SAG END-EXIT
*S**END
*E
C:\Users\skylight120\Dropbox\WolffPack\intranet_access\Releases\2206-01\new\wfvrf23p.txt
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFVRF23P
*S*** System : FINANCIER
*S*** Title : 2022-23 Verification
*S*** Function : This program maintains the Verification
*S*** Overview for the 2022-23 processing year.
*S***
*S***
*S***
*S*** Copyright 1995 - 2022 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S***
*S** LOCAL USING WFVER23D /* Passed to object subprogram
*S** LOCAL USING WFVER23R /* Passed to object subprogram
*S** LOCAL USING WFVER23S /* Shadow file
*S** LOCAL USING WFCPC23D /* Passed to object subprogram
*S** LOCAL USING WFCPC23R /* Passed to object subprogram
*S** LOCAL USING WFCPC23S /* Shadow file
*S** LOCAL USING WFFEC23D /* Passed to object subprogram
*S** LOCAL USING WFFEC23R /* Passed to object subprogram
*S** LOCAL USING WFFEC23S /* Shadow file
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S***
*S** LOCAL USING WWCONST /* Constants
*S** LOCAL USING WWDIALDA /* Common data for dialog objects.
*S** LOCAL USING WWENVIRA /* Used to capture/restore previous environment.
*S** LOCAL USING WWKEYLDA /* Used to set function keys and names.
*S** LOCAL USING WWVALLDA /* Used by valid values/edit mask routine
*S** LOCAL
*S****SAG DEFINE EXIT PROGRAM-CONSTANTS
*S** 01 #PGM-YEAR(A4) INIT<'2023'>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT SECURITY-PGM
*S** /*
*S** /* Security program exit
*S** 01 #SECURITY-PROGRAM(A8) INIT<'WFVRFNNP'>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT EVENT-HISTORY
*S** /*
*S** /* Literals utilized by Event History routine
*S** 01 #EVENT-TYPE(A5) CONST<' '>
*S** 01 #EVENT-DESC(A40) CONST<' '>
*S****SAG END-EXIT
*S****SAG DEFINE EXIT REQUIREMENTS
*S** /*
*S** /* Variables Requirement routine
*S** 01 #REQMNTS(3)
*S** 02 #REQMNT-TYPE(A1) /* (A/Application, D/Disbursement)
*S** INIT (1)<'A'> (2)<'A'> (3)<' '>
*S** 02 #REQMNT-DOC(A6) /* Document mnemonic
*S** INIT (1)<'S-TAX'> (2)<'P-TAX'> (3)<' '>
*S** 02 #REQMNT-PD(A2) /* (ST/Student, AY/Aid Year)
*S** INIT (1)<'AY'> (2)<'AY'> (3)<' '>
*S****SAG END-EXIT
*S***
*S*** Scalar Constants.
*S** 01 #SUB-PARM(A1)
*S***
*S*** Miscellaneous Variables.
*S** 01 #NEXT(L) /* Next processing selected
*S** 01 #DISPLAYED-KEY(A11) /* Last record found
*S** 01 #TYPE-POS(P3)
*S** 01 #KEY(A11) /* Key field copied from map.
*S** 01 #NEW-OBJECT(L) /* GET was done on different object
*S** 01 #BYPASS-OBJECT(L) /* I/O was done via subprogram
*S** 01 #BYPASS-INPUT(L) /* do not perform input statement
*S** 01 #NULL-KEY(A11)
*S****SAG DEFINE EXIT LOCAL-DATA
*S** 01 #SUBPGM(A8)
*S***
*S** 01 #TAB-S(A1)
*S** 01 #TAB-P(A1)
*S** 01 #TAB-D(A1)
*S** 01 #VER-MSG(A30)
*S***
*S** 01 #ORIG-VER(A1)
*S** 01 #IRSREQ-STU(A2)
*S** 01 #IRSREQ-PAR(A2)
*S** 01 #FE-S-UNTXD(A10)
*S** 01 #FE-P-UNTXD(A10)
*S** 01 #FE-S-UNTXD-N(N8)
*S** 01 #FE-P-UNTXD-N(N8)
*S** 01 #FE-S-UNTXD-CV(C)
*S** 01 #FE-P-UNTXD-CV(C)
*S***
*S** 01 #HOLD-ACTION(A1)
*S** 01 #HOLD-FUNCTION(A15)
*S** 01 #BYPASS-STUDENT(L)
*S** 01 #DEP-STAT(A1)
*S***
*S** 01 #VER-TRACK-2(A2)
*S** 01 #FED-TRACK(A2)
*S***
*S** 01 #S-FILER(L)
*S** 01 #P-FILER(L)
*S***
*S**LOCAL USING WFISX23D
*S****SAG END-EXIT
*S**END-DEFINE
*S***
*S***
*S*** Define Formats
*S**FORMAT PS=23 KD=ON LS=133 ZP=OFF
*S***
*S**PERFORM INITIALIZATIONS
*S***
*S*************************************************************************
*S***
*S**PROG.
*S**REPEAT /* until exit action
*S** /*
*S**NEW-SCREEN.
*S** REPEAT /* Escape this repeat with indexes set as desired.
*S****SAG DEFINE EXIT AFTER-NEW-SCREEN
*S** /*
*S** IF ##AID-YEAR NE #PGM-YEAR
*S** ESCAPE BOTTOM(PROG.)
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /* Security / Required fields
*S** /* Perform first time and/or new student (set via Selection)
*S** IF #DISPLAYED-KEY = #NULL-KEY
*S** MOVE 'WFVER23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM VERIFY-2223-SECURITY VERIFY-2223-CNTL-VARS
*S** RESET INITIAL VERIFY-2223-LOGICALS
*S** MOVE 'WFCPC23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM CPS-CMP-2223-SECURITY CPS-CMP-2223-CNTL-VARS
*S** RESET INITIAL CPS-CMP-2223-CNTL-VARS
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S****SAG DEFINE EXIT AFTER-SECURITY
*S** MOVE 'WFFEC23D' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM FED-CMP-2223-SECURITY FED-CMP-2223-CNTL-VARS
*S** RESET INITIAL FED-CMP-2223-LOGICALS
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S** ASSIGN #FE-S-UNTXD-CV = #FE-P-UNTXD-CV
*S****SAG END-EXIT
*S** /*
*S** PERFORM REQUIRED-FIELD-CHECK REQUIRED-FIELD(*)
*S** PERFORM SET-KEYS
*S** END-IF
*S** /*
*S** /* Load appropriate function
*S** IF #ADD-OBJECT
*S** ASSIGN #FUNCTION = 'STORE'
*S** RESET #ADD-OBJECT
*S** ELSE
*S** IF #DISPLAYED-KEY NE #KEY
*S** OR #KEY = #NULL-KEY
*S** ASSIGN #FUNCTION = 'GET'
*S** ELSE
*S** ASSIGN #FUNCTION = 'UPDATE'
*S** END-IF
*S** END-IF
*S****SAG DEFINE EXIT BEFORE-CALL-OBJECT
*S** /*
*S** /* Load key info from GDA, allows selection criteria
*S** /* to be properly processed
*S** MOVE ##STUDENT-ID TO WFVER23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFVER23D.WF-FAO
*S****SAG END-EXIT
*S** /*
*S** /* Perform object I/O subprogram
*S** IF #BYPASS-OBJECT
*S** RESET #BYPASS-OBJECT
*S** ELSE
*S** PERFORM CALL-OBJECT
*S** END-IF
*S****SAG DEFINE EXIT AFTER-CALL-OBJECT
*S** /*
*S** /* Get ISIR and CPS information for display
*S** IF WWAOBJ.#FUNCTION = 'GET'
*S** PERFORM GET-ISIR-IRS-REQUEST #IRSREQ-STU #IRSREQ-PAR
*S** /*
*S** MOVE ##STUDENT-ID TO WFCPC23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFCPC23D.WF-FAO
*S** PERFORM CALL-OBJECT-CPS-CMP
*S** END-IF
*S** /*
*S** /* Get additional ISIR fields
*S** IF WWAOBJ.#FUNCTION = 'GET'
*S** PERFORM EXTRACT-ISIR-2223 WFISX23D
*S** END-IF
*S** /*
*S** COMPUTE #FE-S-UNTXD-N = WFFEC23D.WF-FE-S-U-DST-PEN
*S** + WFFEC23D.WF-FE-S-A-EDCR
*S** + WFFEC23D.WF-FE-S-U-IRA
*S** + WFFEC23D.WF-FE-S-U-INT
*S** IF #FE-S-UNTXD-N > 99999999
*S** MOVE 99999999 TO #FE-S-UNTXD-N
*S** END-IF
*S** MOVE EDITED #FE-S-UNTXD-N(EM=ZZ,ZZZ,ZZZ) TO #FE-S-UNTXD
*S** COMPUTE #FE-P-UNTXD-N = WFFEC23D.WF-FE-P-U-DST-PEN
*S** + WFFEC23D.WF-FE-P-A-EDCR
*S** + WFFEC23D.WF-FE-P-U-IRA
*S** + WFFEC23D.WF-FE-P-U-INT
*S** IF #FE-P-UNTXD-N > 99999999
*S** MOVE 99999999 TO #FE-P-UNTXD-N
*S** END-IF
*S** MOVE EDITED #FE-P-UNTXD-N(EM=ZZ,ZZZ,ZZZ) TO #FE-P-UNTXD
*S** /*
*S** /* Get dependency status
*S** PERFORM GET-DEPENDENCY #DEP-STAT
*S****SAG END-EXIT
*S** /*
*S** /* Load shadow file definitions for appropriate map
*S** IF NOT #CONFIRM-PURGE
*S** MOVE LOAD TO #SUB-PARM
*S** PERFORM CALL-EXT-SUB
*S** END-IF
*S** /*
*S** /* Assign appropriate message
*S** IF ##MSG = SPACE
*S** DECIDE ON FIRST VALUE OF #FUNCTION
*S** VALUE 'GET'
*S** IF #ADD-OBJECT
*S** COMPRESS 'This information not currently stored for #TEMP,'
*S** 'ready to add' INTO ##MSG
*S** ELSE
*S** COMPRESS 'To modify the current #TEMP information,'
*S** 'make changes and press ENTER' INTO ##MSG
*S** END-IF
*S** VALUE 'NEXT'
*S** COMPRESS 'Next #TEMP information has been displayed'
*S** INTO ##MSG
*S** VALUE 'UPDATE'
*S** COMPRESS '#TEMP information has been modified'
*S** INTO ##MSG
*S** VALUE 'STORE'
*S** COMPRESS '#TEMP information has been added'
*S** INTO ##MSG
*S** VALUE 'DELETE'
*S** IF #CONFIRM-PURGE
*S** COMPRESS '#TEMP information has been purged'
*S** INTO ##MSG
*S** ELSE
*S** COMPRESS 'Press ENTER to confirm purge'
*S** INTO ##MSG
*S** END-IF
*S** ANY
*S** EXAMINE ##MSG FOR '#TEMP' AND REPLACE WITH ##SYSTEM-DATA-TYPE
*S** EXAMINE ##MSG FOR ##SYSTEM-DATA-TYPE GIVING POSITION #TYPE-POS
*S** IF #TYPE-POS = 1
*S** EXAMINE SUBSTRING(##MSG,1,1) AND TRANSLATE INTO UPPER CASE
*S** END-IF
*S** NONE
*S** IGNORE
*S** END-DECIDE
*S** END-IF
*S** SET CONTROL 'WB'
*S** /*
*S** /* INPUT processing
*S****SAG DEFINE EXIT BEFORE-INPUT
*S** /*
*S** /* Protect untaxed income total because components must
*S** /* be entered - overlay can only handle components
*S** MOVE PROTECTED-ATTR TO VE-S-UNTAXED-CV
*S** MOVE PROTECTED-ATTR TO VE-P-UNTAXED-CV
*S** /*
*S** /* Protect tracking group specific fields
*S** /* if not appropriate tracking group
*S** ASSIGN #FED-TRACK = SUBSTR(#VER-TRACK,3,2)
*S** ASSIGN #VER-TRACK-2 = #FED-TRACK
*S** /*
*S** /* If student selected for institutional verification,
*S** /* use institutional selector to identify group
*S** IF WFVER23D.WF-VE-INS-REQD NE ' '
*S** COMPRESS 'V' WFVER23D.WF-VE-INS-REQD
*S** INTO #VER-TRACK-2 LEAVING NO SPACE
*S** END-IF
*S** /*
*S** /* Protect AGI or Income fields based on Fed tax filing status
*S** IF WFFEC23D.WF-FE-S-FILER = 'F' OR = 'E'
*S** ASSIGN #S-FILER = TRUE
*S** END-IF
*S** IF WFFEC23D.WF-FE-P-FILER = 'F' OR = 'E'
*S** ASSIGN #P-FILER = TRUE
*S** END-IF
*S** /*
*S** DECIDE ON FIRST VALUE OF #VER-TRACK-2
*S** VALUE 'V1'
*S** MOVE PROTECTED-ATTR TO VE-S-SEP-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE PROTECTED-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** VALUE 'V4'
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** MOVE NORMAL-ATTR TO VE-S-SEP-CV
*S** MOVE PROTECTED-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE PROTECTED-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** VALUE 'V5'
*S** MOVE NORMAL-ATTR TO VE-S-SEP-CV
*S** MOVE PROTECTED-ATTR TO VE-S-FAM-COL-CV VE-S-FAM-SIZE-CV
*S** MOVE PROTECTED-ATTR TO VE-P-FAM-COL-CV VE-P-FAM-SIZE-CV
*S** MOVE PROTECTED-ATTR TO VE-S-AGI-CV VE-S-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-S-ST-INC-CV VE-S-SP-INC-CV
*S** MOVE PROTECTED-ATTR TO VE-P-AGI-CV VE-P-FED-TAX-CV
*S** MOVE PROTECTED-ATTR TO VE-P-P1-INC-CV VE-P-P2-INC-CV
*S** NONE
*S** IGNORE
*S** END-DECIDE
*S****SAG END-EXIT
*S** /*
*S** /* Input Map
*S** IF NOT #BYPASS-INPUT
*S** INPUT WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFVRF23M'
*S** END-IF
*S** /*
*S** RESET ##MSG
*S****SAG DEFINE EXIT AFTER-INPUT
*S** /*
*S** /* If Expand key selected, fetch student and/or
*S** /* parent verification detail
*S** /* (only if on appropriate 'tab' field)
*S** IF *PF-KEY = WWKEYLDA.#EXPAND-KEY
*S** IF *CURS-FIELD = POS(#TAB-S) /* Student data
*S** MOVE 'WFV23SVN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** IF *CURS-FIELD = POS(#TAB-P) /* Parent data
*S** MOVE 'WFV23PVN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** IF *CURS-FIELD = POS(#TAB-D) /* Detail data
*S** MOVE 'WFV23DTN' TO #SUBPGM
*S** PERFORM PROCESS-VER-SUBPGM
*S** ELSE
*S** REINPUT 'Not an expandable field' ALARM
*S** END-IF
*S** END-IF
*S** END-IF
*S** PERFORM FIELD-SECURITY-OVERRIDE
*S** ASSIGN #FE-S-UNTXD-CV = #FE-P-UNTXD-CV
*S** ESCAPE TOP
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /*
*S** /* Check standard PF-Keys
*S****SAG DEFINE EXIT BEFORE-STD-KEY-PROCESSING
*S** /*
*S** /* Processing to be performed prior to 'standard key' processing
*S** /* Trigger year-specific routing program exit
*S** IF *PF-KEY = WWKEYLDA.#RETURN-KEY
*S** MOVE 'EXIT' TO ##PASS-KEY
*S** END-IF
*S****SAG END-EXIT
*S** INCLUDE WWSTDKEY
*S** /*
*S** /* Trap invalid PF-Keys.
*S** IF *PF-KEY = 'ENTR' OR = WWKEYLDA.#SELECT-KEY
*S****SAG DEFINE EXIT VALID-PFKEYS
*S** OR = WWKEYLDA.#EXPAND-KEY
*S** OR = WWKEYLDA.#CALC-KEY
*S****SAG END-EXIT
*S** IGNORE
*S** ELSE
*S** REINPUT 'Invalid program function key' ALARM
*S** END-IF
*S** /*
*S** /* Perform edit routine
*S** RESET INITIAL #FAIL-EDIT
*S** MOVE EDIT TO #SUB-PARM
*S** PERFORM CALL-EXT-SUB
*S** IF #FAIL-EDIT
*S** REINPUT FULL 'Edit errors occurred'
*S** MARK #MARK-FIELD ALARM
*S** END-IF
*S** /*
*S** /* Hard-coded edit for required fields to allow
*S** /* for field highlighting and REINPUT statement
*S** /* (not available in CALL-OBJECT where calc is invoked)
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** IF #VER-TRACK-2 = 'V4' OR
*S** #VER-TRACK-2 = 'V5'
*S** IF WFVER23D.WF-VE-S-SEP NOT = 'Y'
*S** MOVE HI-LITE-ATTR TO VE-S-SEP-CV
*S** ASSIGN #MARK-FIELD = POS(WFVER23D.WF-VE-S-SEP)
*S** ASSIGN #FAIL-EDIT = TRUE
*S** COMPRESS ' No verification - SEP required for '
*S** #VER-TRACK-2 'tracking group'
*S** INTO ##MSG
*S** END-IF
*S** END-IF
*S** IF #FAIL-EDIT
*S** REINPUT FULL ##MSG
*S** MARK #MARK-FIELD ALARM
*S** END-IF
*S** END-IF
*S** /*
*S*************************************************************************
*S**DEFINE SUBROUTINE NEW-SCREEN
*S*************************************************************************
*S** /*
*S** /* Subroutine to allow escape from screen loop
*S** ESCAPE BOTTOM(NEW-SCREEN.) IMMEDIATE
*S**END-SUBROUTINE /* NEW-SCREEN
*S** /*
*S** END-REPEAT /* on NEW-SCREEN
*S**END-REPEAT /* on Repeat of Program.
*S***
*S**PERFORM FINAL-PROCESSING
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-EXT-SUB
*S*************************************************************************
*S** /*
*S** /* Call Map specific external subroutine
*S** PERFORM WFVRF23M-MASK-EDITS #SUB-PARM WWVALLDA
*S** WFVER23D WFVER23D-ID WFVER23R WFVER23S
*S** WFCPC23D WFCPC23D-ID WFCPC23R WFCPC23S
*S** WFFEC23D WFFEC23D-ID WFFEC23R WFFEC23S
*S**END-SUBROUTINE /* CALL-EXT-SUB
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT
*S*************************************************************************
*S** /*
*S** /* Prior to processing object
*S** IF WWAOBJ.#FUNCTION = 'DELETE'
*S** RESET #CONFIRM-PURGE
*S** END-IF
*S****SAG DEFINE EXIT BEFORE-OBJECT-CALL
*S** /*
*S** /* If Verification Status manually updated, perform indirect updates
*S** IF WWAOBJ.#FUNCTION = 'STORE' OR = 'UPDATE'
*S** IF WFVER23D.WF-VE-VER NE #ORIG-VER
*S** IF WFVER23D.WF-VE-VER = 'P' OR = 'T'
*S** ASSIGN WFVER23D.WF-VE-VER-FED = 'V'
*S** ASSIGN WFVER23D.WF-VE-VER-TRAN = WFCPC23D.WF-CP-FED-ID3
*S** ASSIGN WFVER23D.WF-VE-VER-DATE = *DATX
*S** ASSIGN WFVER23D.WF-VE-VER-REVER = 'M'
*S** END-IF
*S** END-IF
*S** END-IF
*S****SAG END-EXIT
*S** /*
*S** /* Assign #KEY to equal the input fields
*S** MOVE BY NAME WFVER23D TO WFVER23D-ID.STRUCTURE
*S** ASSIGN #KEY = WFVER23D-ID
*S** /*
*S** /* Invoke subprogram to process object
*S** PERFORM CALL-OBJECT-IO
*S** /*
*S** IF WWAOBJ.#FUNCTION = 'GET' AND
*S** NOT WWAOBJ.#EXISTS
*S** ASSIGN #ADD-OBJECT = TRUE
*S** END-IF
*S** /*
*S** ASSIGN #DISPLAYED-KEY = WFVER23D-ID
*S** /*
*S** /* Reset #KEY if next record displayed
*S** IF #FUNCTION = 'NEXT'
*S** ASSIGN #KEY = #DISPLAYED-KEY
*S** END-IF
*S** /*
*S** /* Set logical for update processing
*S** IF #FUNCTION = 'STORE'
*S** OR = 'UPDATE'
*S** ASSIGN #UPDATE-PERFORMED = TRUE
*S** END-IF
*S** /*
*S** /* Update performed
*S****SAG DEFINE EXIT BEFORE-UPDATE-PERFORMED-CHECK
*S** /*
*S** /* On each I/O, capture "original" Verification Status for later use
*S** MOVE WFVER23D.WF-VE-VER TO #ORIG-VER
*S** /*
*S** /* Reset verification calc message -- it will be set in the calc
*S** /* If requested, call the calc
*S** RESET #VER-MSG
*S** IF WWAOBJ.#FUNCTION = 'UPDATE' OR = 'STORE'
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** MOVE WFCPC23D.WF-CP-FED-ID3 TO ##PASS-TEMP
*S** PERFORM CALC-VERIFICATION #BYPASS-STUDENT
*S** IF #BYPASS-STUDENT NOT = TRUE
*S** MOVE ##MSG TO #VER-MSG
*S** MOVE 'Verification calculation performed' TO ##MSG
*S** END-IF
*S** /*
*S** /* Reread verification record updated in calc
*S** MOVE #FUNCTION TO #HOLD-FUNCTION
*S** MOVE 'GET' TO #FUNCTION
*S** CALLNAT 'WFVER23O' WW-GDA
*S** WFVER23D
*S** WFVER23D-ID
*S** WFVER23R
*S** WWAOBJ
*S** MOVE #HOLD-FUNCTION TO #FUNCTION
*S** END-IF
*S** END-IF
*S** /*
*S** /* Get current Federal record
*S** MOVE #FUNCTION TO #HOLD-FUNCTION
*S** ASSIGN #FUNCTION = 'GET'
*S** MOVE ##STUDENT-ID TO WFFEC23D.WW-STUDENT-ID
*S** MOVE ##FAO-ID TO WFFEC23D.WF-FAO
*S** PERFORM CALL-OBJECT-FED-CMP
*S** MOVE #HOLD-FUNCTION TO #FUNCTION
*S****SAG END-EXIT
*S** IF #UPDATE-PERFORMED THEN
*S** CALLNAT 'WWDUTILN' WW-GDA WWVALLDA
*S** PERFORM ADD-EVENT #EVENT-TYPE #EVENT-DESC
*S** END TRANSACTION
*S** RESET #UPDATE-PERFORMED #ACTION #ADD-OBJECT #DATA-MODIFIED
*S** END-IF
*S**END-SUBROUTINE /* CALL-OBJECT
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-IO
*S*************************************************************************
*S***
*S** CALLNAT 'WFVER23O' WW-GDA
*S** WFVER23D
*S** WFVER23D-ID
*S** WFVER23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-IO
*S***
*S**************************************************************************
*S**DEFINE SUBROUTINE FIELD-SECURITY-OVERRIDE
*S**************************************************************************
*S** /*
*S** /* Set display-only fields to appropriate security
*S** /* Normal security will have set to modifiable
*S** /*
*S** MOVE 'WFFEC23D' TO ##FILE-ID
*S** PERFORM FILE-SECURITY-LOOKUP
*S** MOVE ##FIELD-SEC-CV TO FE-S-FILER-CV
*S** FE-S-FAM-SIZE-CV
*S** FE-S-FAM-COL-CV
*S** FE-S-AGI-CV
*S** FE-S-FED-TAX-CV
*S** FE-S-ST-INC-CV
*S** FE-S-SP-INC-CV
*S** FE-P-FILER-CV
*S** FE-P-FAM-SIZE-CV
*S** FE-P-FAM-COL-CV
*S** FE-P-AGI-CV
*S** FE-P-FED-TAX-CV
*S** FE-P-P1-INC-CV
*S** FE-P-P2-INC-CV
*S**END-SUBROUTINE /* FIELD-SECURITY-OVERRIDE
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE FINAL-PROCESSING
*S*************************************************************************
*S** /*
*S** INCLUDE WWEND /* Restore environment.
*S**END-SUBROUTINE /* FINAL-PROCESSING
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE INITIALIZATIONS
*S*************************************************************************
*S** /*
*S** INCLUDE WWBEGIN /* Capture environment
*S** SET CONTROL 'WBM' /* Set window size/base
*S** /*
*S** /* Specify which PF-KEYS are valid, start by resetting all keys,
*S** /* then assign desired keys using RESET INITIAL.
*S** INCLUDE WWPFSTD /* Standard PF-Keys.
*S****SAG DEFINE EXIT SET-PF-KEYS
*S***
*S*** Set additional PF Keys
*S** RESET INITIAL WWKEYLDA.#SELECT-KEY
*S** WWKEYLDA.#EXPAND-KEY
*S** WWKEYLDA.#NOTEPAD-KEY
*S** WWKEYLDA.#CALC-KEY
*S****SAG END-EXIT
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S** INCLUDE WWSETKEY /* Set specified keys
*S** INCLUDE WWSETHLP /* Set Help keys
*S**END-SUBROUTINE /* SET-KEY
*S****SAG DEFINE EXIT MISCELLANEOUS-SUBROUTINES
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-CPS-CMP
*S*************************************************************************
*S***
*S*** Call object subprogram
*S** CALLNAT 'WFCPC23O' WW-GDA
*S** WFCPC23D
*S** WFCPC23D-ID
*S** WFCPC23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-CPS-CMP
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT-FED-CMP
*S*************************************************************************
*S***
*S*** Call object subprogram
*S** CALLNAT 'WFFEC23O' WW-GDA
*S** WFFEC23D
*S** WFFEC23D-ID
*S** WFFEC23R
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT-FED-CMP
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE PROCESS-VER-SUBPGM
*S*************************************************************************
*S***
*S*** Call expand subprogram
*S** CALLNAT #SUBPGM WW-GDA #DISPLAYED-KEY #ADD-OBJECT
*S** WFVER23D WFVER23D-ID WFVER23R WFVER23S
*S** WFFEC23D WFFEC23D-ID WFFEC23R WFFEC23S
*S** WWAOBJ
*S**END-SUBROUTINE /* PROCESS-VER-SUBPGM
*S****SAG END-EXIT
*S**END
*E
Number of differences: 8
Added(0,2)
Deleted(10,10)
Changed(16)
Changed in changed(16)
Ignored