C:\Documents and Settings\Dan\My Documents\share\FINANCIER\releases\Natural\1210-99\old\wfreqtrn.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
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Subprogram: WFREQTRN
*S*** System : FINANCIER
*S*** Title : Requirements Transcripts subprogram
*S*** Function : This program maintains the Transcript array in the
*S*** WF-REQUIREMENT file.
*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
*S** 01 #ARRAYS(12)
*S** 02 #TR-SCHL(A9)
*S** 02 #TR-AY(A4)
*S** 02 #TR-STAT(A1)
*S** 02 #TR-STAT-DATE(A10)
*S** 02 #TR-NOT(A2)
*S** 02 #TR-AFF(A1)
*S***
*S** LOCAL USING WFREQMTD /* Passed to Object Subprogram WFREQMTO
*S** LOCAL USING WFREQMTR /* Passed to Object Subprogram WFREQMTO
*S** LOCAL USING WFREQMTS /* Shadow file
*S** LOCAL USING WWAOBJ /* Passed to Object Subprograms
*S***
*S** LOCAL USING WWCONST /* Constants LDA
*S** LOCAL USING WWDIALDA /* Local data for dialog objects.
*S** LOCAL USING WWENVIRA /* Used to capture/restore previous environment.
*S** LOCAL USING WWKEYLDA /* Used to set function keys + their alias.
*S** LOCAL USING WWVALLDA /* Valid value LDA
*S***
*S** LOCAL
*S** 01 #TRANSCRIPTS-CV(12)
*S** 02 #TR-SCHL-CV(C)
*S** 02 #TR-AY-CV(C)
*S** 02 #TR-STAT-CV(C)
*S** 02 #TR-STAT-DATE-CV(C)
*S** 02 #TR-NOT-CV(C)
*S** 02 #TR-AFF-CV(C)
*S** 01 #TRANSCRIPTS-F(12)
*S** 02 #TR-SCHL-F(L)
*S** 02 #TR-AY-F(L)
*S** 02 #TR-STAT-F(L)
*S** 02 #TR-STAT-DATE-F(L)
*S** 02 #TR-NOT-F(L)
*S** 02 #TR-AFF-F(L)
*S** 01 #SCHOOL-TRAN(12)
*S** 02 #TR-SCHL-TRANS(A30)
*S** 01 #UPDATE(12)
*S** 02 #UPDATED-DATA(L)
*S** 02 #UPDATED-STAT(L)
*S** 01 #SECURITY-PROGRAM(A8) INIT<'WFAPREQP'>
*S** /*
*S** /* Variables utilized by Requirement routine
*S** 01 #REQMNTS(3)
*S** 02 #REQMNT-TYPE(A1) /* (A/Application, D/Disbursement)
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S** 02 #REQMNT-DOC(A6) /* Document mnemonic
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S** 02 #REQMNT-PD(A2) /* (ST/Student, AY/Aid Year)
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S***
*S*** Miscellaneous variables.
*S** 01 #CURS-LINE(P5) /* Cursor select line.
*S** 01 #END-OF-DATA(L) /* End of logical read.
*S** 01 #END-OF-PAGE-LINE(P5) /* Line number where EOP starts.
*S** 01 #FIRST-INPUT(L) INIT<TRUE> /* Trigger End of Page.
*S** 01 #STD-KEY-PRESSED(L) INIT<TRUE>
*S** 01 #TOP-OF-PAGE(L) INIT<TRUE>
*S** 01 #FORWARD(L) INIT<TRUE>
*S** 01 #UPDATE-REC(L)
*S** 01 #ADD-REC(L)
*S** 01 #INSIDE-READ-LOOP(L) INIT<TRUE>
*S** 01 #BYPASS-READ(L) /* No paging
*S** 01 #SUB(P3)
*S** 01 #SUB2(P3)
*S** 01 #METH-SUB(N1)
*S** 01 REDEFINE #METH-SUB
*S** 02 #METH-SUB-RED(A1)
*S** 01 #CNT(P3)
*S** 01 #REQ-TYPE(A2)
*S** 01 #NEXT(L)
*S***
*S*** Define input fields.
*S***
*S*** Value of the scroll key on current record
*S** 01 #PANEL(P3) INIT<1> /* Left/Right panel number.
*S** 01 #HOLD-REQ-TYPE(A1)
*S** /*
*S** 01 #DISPLAYED-KEY(A1) /* Used by WWSTDKEY LDA
*S** /*
*S** 01 #PASS-TEMP(A30)
*S** 01 #PASS-KEY(A30)
*S** /*
*S** 01 #BYPASS-INPUT (L) /* Bypass
*S** /*
*S** 01 #WF-REQUIREMENT
*S** 02 WF-REQ-DOCUMENTS
*S** 03 WF-RE-D01-TYPE (A1)
*S** 03 WF-RE-D01-AFF (A1)
*S** 03 WF-RE-D01-STAT (A1)
*S** 03 WF-RE-D01-STAT-DATE (D)
*S** 03 WF-RE-D01-NOT (N2)
*S** 03 WF-RE-D01-TR-SCHL (A9)
*S** 03 WF-RE-D01-TR-AY (A4)
*S** 03 WF-RE-D01-ST-DOC (A6)
*S** 03 WF-RE-D02-TYPE (A1)
*S** 03 WF-RE-D02-AFF (A1)
*S** 03 WF-RE-D02-STAT (A1)
*S** 03 WF-RE-D02-STAT-DATE (D)
*S** 03 WF-RE-D02-NOT (N2)
*S** 03 WF-RE-D02-TR-SCHL (A9)
*S** 03 WF-RE-D02-TR-AY (A4)
*S** 03 WF-RE-D02-ST-DOC (A6)
*S** 03 WF-RE-D03-TYPE (A1)
*S** 03 WF-RE-D03-AFF (A1)
*S** 03 WF-RE-D03-STAT (A1)
*S** 03 WF-RE-D03-STAT-DATE (D)
*S** 03 WF-RE-D03-NOT (N2)
*S** 03 WF-RE-D03-TR-SCHL (A9)
*S** 03 WF-RE-D03-TR-AY (A4)
*S** 03 WF-RE-D03-ST-DOC (A6)
*S** 03 WF-RE-D04-TYPE (A1)
*S** 03 WF-RE-D04-AFF (A1)
*S** 03 WF-RE-D04-STAT (A1)
*S** 03 WF-RE-D04-STAT-DATE (D)
*S** 03 WF-RE-D04-NOT (N2)
*S** 03 WF-RE-D04-TR-SCHL (A9)
*S** 03 WF-RE-D04-TR-AY (A4)
*S** 03 WF-RE-D04-ST-DOC (A6)
*S** 03 WF-RE-D05-TYPE (A1)
*S** 03 WF-RE-D05-AFF (A1)
*S** 03 WF-RE-D05-STAT (A1)
*S** 03 WF-RE-D05-STAT-DATE (D)
*S** 03 WF-RE-D05-NOT (N2)
*S** 03 WF-RE-D05-TR-SCHL (A9)
*S** 03 WF-RE-D05-TR-AY (A4)
*S** 03 WF-RE-D05-ST-DOC (A6)
*S** 03 WF-RE-D06-TYPE (A1)
*S** 03 WF-RE-D06-AFF (A1)
*S** 03 WF-RE-D06-STAT (A1)
*S** 03 WF-RE-D06-STAT-DATE (D)
*S** 03 WF-RE-D06-NOT (N2)
*S** 03 WF-RE-D06-TR-SCHL (A9)
*S** 03 WF-RE-D06-TR-AY (A4)
*S** 03 WF-RE-D06-ST-DOC (A6)
*S** 03 WF-RE-D07-TYPE (A1)
*S** 03 WF-RE-D07-AFF (A1)
*S** 03 WF-RE-D07-STAT (A1)
*S** 03 WF-RE-D07-STAT-DATE (D)
*S** 03 WF-RE-D07-NOT (N2)
*S** 03 WF-RE-D07-TR-SCHL (A9)
*S** 03 WF-RE-D07-TR-AY (A4)
*S** 03 WF-RE-D07-ST-DOC (A6)
*S** 03 WF-RE-D08-TYPE (A1)
*S** 03 WF-RE-D08-AFF (A1)
*S** 03 WF-RE-D08-STAT (A1)
*S** 03 WF-RE-D08-STAT-DATE (D)
*S** 03 WF-RE-D08-NOT (N2)
*S** 03 WF-RE-D08-TR-SCHL (A9)
*S** 03 WF-RE-D08-TR-AY (A4)
*S** 03 WF-RE-D08-ST-DOC (A6)
*S** 03 WF-RE-D09-TYPE (A1)
*S** 03 WF-RE-D09-AFF (A1)
*S** 03 WF-RE-D09-STAT (A1)
*S** 03 WF-RE-D09-STAT-DATE (D)
*S** 03 WF-RE-D09-NOT (N2)
*S** 03 WF-RE-D09-TR-SCHL (A9)
*S** 03 WF-RE-D09-TR-AY (A4)
*S** 03 WF-RE-D09-ST-DOC (A6)
*S** 03 WF-RE-D10-TYPE (A1)
*S** 03 WF-RE-D10-AFF (A1)
*S** 03 WF-RE-D10-STAT (A1)
*S** 03 WF-RE-D10-STAT-DATE (D)
*S** 03 WF-RE-D10-NOT (N2)
*S** 03 WF-RE-D10-TR-SCHL (A9)
*S** 03 WF-RE-D10-TR-AY (A4)
*S** 03 WF-RE-D10-ST-DOC (A6)
*S** 03 WF-RE-D11-TYPE (A1)
*S** 03 WF-RE-D11-AFF (A1)
*S** 03 WF-RE-D11-STAT (A1)
*S** 03 WF-RE-D11-STAT-DATE (D)
*S** 03 WF-RE-D11-NOT (N2)
*S** 03 WF-RE-D11-TR-SCHL (A9)
*S** 03 WF-RE-D11-TR-AY (A4)
*S** 03 WF-RE-D11-ST-DOC (A6)
*S** 03 WF-RE-D12-TYPE (A1)
*S** 03 WF-RE-D12-AFF (A1)
*S** 03 WF-RE-D12-STAT (A1)
*S** 03 WF-RE-D12-STAT-DATE (D)
*S** 03 WF-RE-D12-NOT (N2)
*S** 03 WF-RE-D12-TR-SCHL (A9)
*S** 03 WF-RE-D12-TR-AY (A4)
*S** 03 WF-RE-D12-ST-DOC (A6)
*S** 03 WF-RE-D13-TYPE (A1)
*S** 03 WF-RE-D13-AFF (A1)
*S** 03 WF-RE-D13-STAT (A1)
*S** 03 WF-RE-D13-STAT-DATE (D)
*S** 03 WF-RE-D13-NOT (N2)
*S** 03 WF-RE-D13-TR-SCHL (A9)
*S** 03 WF-RE-D13-TR-AY (A4)
*S** 03 WF-RE-D13-ST-DOC (A6)
*S** 03 WF-RE-D14-TYPE (A1)
*S** 03 WF-RE-D14-AFF (A1)
*S** 03 WF-RE-D14-STAT (A1)
*S** 03 WF-RE-D14-STAT-DATE (D)
*S** 03 WF-RE-D14-NOT (N2)
*S** 03 WF-RE-D14-TR-SCHL (A9)
*S** 03 WF-RE-D14-TR-AY (A4)
*S** 03 WF-RE-D14-ST-DOC (A6)
*S** 03 WF-RE-D15-TYPE (A1)
*S** 03 WF-RE-D15-AFF (A1)
*S** 03 WF-RE-D15-STAT (A1)
*S** 03 WF-RE-D15-STAT-DATE (D)
*S** 03 WF-RE-D15-NOT (N2)
*S** 03 WF-RE-D15-TR-SCHL (A9)
*S** 03 WF-RE-D15-TR-AY (A4)
*S** 03 WF-RE-D15-ST-DOC (A6)
*S** 02 REDEFINE WF-REQ-DOCUMENTS
*S** 03 #REQ-DOCUMENTS(15)
*S** 04 #RE-D-TYPE (A1)
*S** 04 #RE-D-AFF (A1)
*S** 04 #RE-D-STAT (A1)
*S** 04 #RE-D-STAT-DATE (D)
*S** 04 #RE-D-NOT (N2)
*S** 04 #RE-D-TR-SCHL (A9)
*S** 04 #RE-D-TR-AY (A4)
*S** 04 #RE-D-ST-DOC (A6)
*S**END-DEFINE
*S***
*S***
*S**FORMAT ES=ON /* ES suppresses (WRITE ' ') output,
*S** /* needed for newpage processing
*S**PERFORM INITIALIZATIONS
*S**ASSIGN #HOLD-REQ-TYPE = ##PASS-KEY
*S***
*S**PROG.
*S**REPEAT /* Repeat loop to allow escape of program from within subroutine.
*S***
*S*************************************************************************
*S***
*S** /*
*S** DEFINE WINDOW TRNSCRPT
*S** SIZE 17*75
*S** BASE 4 / 3
*S** TITLE 'Transcripts'
*S** CONTROL SCREEN
*S** FRAMED ON (CD=NE)
*S** POSITION OFF
*S** SET WINDOW 'TRNSCRPT'
*S** ASSIGN ##COLOR = 'NE'
*S***
*S**NEW-READ.
*S** REPEAT /* Escape this repeat if no end of data processing.
*S** /*
*S** /* Security
*S** /* Perform first time and/or new student (set via Selection)
*S** MOVE 'WFREQMTD' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM REQUIREMENT-SECURITY REQUIREMENT-CNTL-VARS
*S** RESET INITIAL REQUIREMENT-LOGICALS
*S** MOVE RE-DOC-TYPE-CV TO #TR-SCHL-CV(*)
*S** #TR-AY-CV(*)
*S** #TR-STAT-CV(*)
*S** #TR-STAT-DATE-CV(*)
*S** #TR-NOT-CV(*)
*S** #TR-AFF-CV(*)
*S** PERFORM SET-KEYS
*S** IF ##PASS-SECURITY NE 'W' /* Force write access to
*S** RESET WWKEYLDA.#CALC-KEY /* allow calc
*S** END-IF
*S** /*
*S** WRITE NOTITLE ' '
*S** NEWPAGE
*S** /*
*S***
*S**READ-FILE. /* Escape this label if end of data processing is needed.
*S** REPEAT
*S** /*
*S** /* Display headings and load the scrolling table with key and
*S** /* Unique record identifier for backward/sideways scrolling.
*S** AT TOP OF PAGE
*S** ASSIGN #TOP-OF-PAGE = TRUE
*S** /*
*S** END-TOPPAGE
*S** /*
*S** /* Input the screen and check users PF keys.
*S** AT END OF PAGE
*S** /*
*S** /* Load school translations
*S** RESET #SCHOOL-TRAN(*)
*S** FOR #SUB = 1 TO 12
*S** IF #TR-SCHL(#SUB) = SPACE
*S** ESCAPE BOTTOM
*S** END-IF
*S** MOVE 'WFTSCPTD.WF-TR-D01-SCHOOL-ID' TO #PASS-KEY
*S** MOVE #TR-SCHL(#SUB) TO #PASS-TEMP
*S** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S** MOVE #PASS-TEMP TO #TR-SCHL-TRANS(#SUB)
*S** MOVE PROTECTED-ATTR TO #TR-SCHL-CV(#SUB)
*S** END-FOR
*S** /*
*S** INPUT WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFREQTRM'
*S** /*
*S** INCLUDE WWSTDCHK /* Check standard pf-keys
*S** IF #STD-KEY-PRESSED THEN
*S** ASSIGN #FORWARD = FALSE
*S** INCLUDE WWSTDKEY
*S** END-IF
*S** /*
*S** /* Requirement calculation done in summary screen logic
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** ASSIGN ##PASS-TEMP = 'CALC'
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** /*
*S** /* Check scroll keys.
*S** IF NOT(*PF-KEY = 'ENTR' OR
*S** = WWKEYLDA.#NOTEPAD-KEY)
*S** REINPUT FULL 'Invalid program function key' ALARM
*S** END-IF
*S** ASSIGN #FORWARD = TRUE
*S** /*
*S** IF *PF-KEY = 'ENTR'
*S** /*
*S** /* Check for data modification
*S** PERFORM DATA-EDIT-ROUTINE
*S** IF #FAIL-EDIT
*S** REINPUT FULL WITH TEXT 'Edit errors occurred'
*S** MARK #MARK-FIELD
*S** END-IF
*S** PERFORM UPDATE-TRANSCRIPT-DATA
*S** PERFORM EXIT-READ-LOOP
*S** END-IF
*S** /*
*S** END-ENDPAGE /* AT END OF PAGE
*S** END-REPEAT /* Find of file prime file.
*S** /*
*S** ASSIGN #INSIDE-READ-LOOP = FALSE
*S** ASSIGN #END-OF-DATA = TRUE
*S** /*
*S** WRITE NOTITLE ' '
*S** NEWPAGE
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE EXIT-READ-LOOP
*S*************************************************************************
*S***
*S** ESCAPE BOTTOM(NEW-READ.) IMMEDIATE
*S**END-SUBROUTINE /* EXIT-READ-LOOP
*S***
*S** END-REPEAT /* NEW-READ.
*S** /*
*S**END-REPEAT /* PROG.
*S**PERFORM FINAL-PROCESSING
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT
*S*************************************************************************
*S***
*S*** Call WF-REQUIREMENT Object subprogram
*S** CALLNAT 'WFREQMTO' WW-GDA
*S** WFREQMTD
*S** WFREQMTD-ID
*S** WFREQMTR
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMPARE-ARRAYS
*S*************************************************************************
*S***
*S*** Compare arrays if data modified
*S** RESET #UPDATE-REC
*S** FOR #SUB = 1 TO 12
*S** IF #UPDATED-DATA(#SUB)
*S** FOR #SUB2 = 1 TO 15
*S** IF #RE-D-TYPE(#SUB2) = 'T' /* 'Transcript' type
*S** IF #RE-D-TR-SCHL(#SUB2) = #TR-SCHL(#SUB)
*S** /*
*S** /* Default status and/or affected flag
*S** IF #TR-STAT(#SUB) = SPACE
*S** MOVE 'R' TO #TR-STAT(#SUB)
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** END-IF
*S** IF #TR-AFF(#SUB) = SPACE
*S** MOVE 'Y' TO #TR-AFF(#SUB)
*S** END-IF
*S** MOVE #TR-AY(#SUB) TO #RE-D-TR-AY(#SUB2)
*S** MOVE #TR-STAT(#SUB) TO #RE-D-STAT(#SUB2)
*S** MOVE #TR-AFF(#SUB) TO #RE-D-AFF(#SUB2)
*S** IF #UPDATED-STAT(#SUB)
*S** MOVE *DATX TO #RE-D-STAT-DATE(#SUB2)
*S** MOVE EDITED *DATX(EM=MM/DD/YYYY) TO #TR-STAT-DATE(#SUB)
*S** END-IF
*S** ESCAPE BOTTOM
*S** END-IF
*S** ELSE
*S** IF #RE-D-TYPE(#SUB2) = SPACE /* First blank occurence
*S** MOVE 'T' TO #RE-D-TYPE(#SUB2)
*S** MOVE #TR-SCHL(#SUB) TO #RE-D-TR-SCHL(#SUB2)
*S** MOVE #TR-AY(#SUB) TO #RE-D-TR-AY(#SUB2)
*S** MOVE EDITED 00(EM=Z9) TO #TR-NOT(#SUB)
*S** /*
*S** /* Default status and/or affected flag
*S** IF #TR-STAT(#SUB) = SPACE
*S** MOVE 'R' TO #TR-STAT(#SUB)
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** END-IF
*S** IF #TR-AFF(#SUB) = SPACE
*S** MOVE 'Y' TO #TR-AFF(#SUB)
*S** END-IF
*S** MOVE #TR-STAT(#SUB) TO #RE-D-STAT(#SUB2)
*S** MOVE #TR-AFF(#SUB) TO #RE-D-AFF(#SUB2)
*S** IF #UPDATED-STAT(#SUB)
*S** MOVE *DATX TO #RE-D-STAT-DATE(#SUB2)
*S** MOVE EDITED *DATX(EM=MM/DD/YYYY) TO #TR-STAT-DATE(#SUB)
*S** END-IF
*S** ESCAPE BOTTOM
*S** END-IF
*S** END-IF
*S** END-FOR
*S** ASSIGN #UPDATE-REC = TRUE
*S** END-IF
*S** END-FOR
*S** /*
*S** /* Update data if modifications
*S** IF #UPDATE-REC
*S** IF #ADD-REC
*S** ASSIGN WWAOBJ.#FUNCTION = 'STORE'
*S** ELSE
*S** ASSIGN WWAOBJ.#FUNCTION = 'UPDATE'
*S** END-IF
*S** /*
*S** /* Load array into REQIREMENT record
*S** MOVE BY NAME #WF-REQUIREMENT.WF-REQ-DOCUMENTS TO
*S** WFREQMTD.WF-REQ-DOCUMENTS
*S** PERFORM CALL-OBJECT
*S** ASSIGN ##PASS-TEMP = 'CALC'
*S** END-IF
*S**END-SUBROUTINE /* COMPARE-ARRAYS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE DATA-EDIT-ROUTINE
*S*************************************************************************
*S***
*S*** Verify if data was modified and edit
*S** RESET #FAIL-EDIT #MARK-FIELD #UPDATE(*)
*S** FOR #SUB = 1 TO 12 /* Loop through array
*S** IF #TR-SCHL-CV(#SUB) MODIFIED OR
*S** #TR-SCHL-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-TR-SCHL'
*S** ASSIGN #VALUE = #TR-SCHL(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-SCHL(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-SCHL-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-SCHL-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-SCHL-CV(#SUB)
*S** RESET #TR-SCHL-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-AY-CV(#SUB) MODIFIED OR
*S** #TR-AY-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-TR-AY'
*S** ASSIGN #VALUE = #TR-AY(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-AY(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-AY-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-AY-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-AY-CV(#SUB)
*S** RESET #TR-AY-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-STAT-CV(#SUB) MODIFIED OR
*S** #TR-STAT-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-STAT'
*S** ASSIGN #VALUE = #TR-STAT(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-STAT(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-STAT-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-STAT-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-STAT-CV(#SUB)
*S** RESET #TR-STAT-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-AFF-CV(#SUB) MODIFIED OR
*S** #TR-AFF-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-AFF'
*S** ASSIGN #VALUE = #TR-AFF(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-AFF(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-AFF-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-AFF-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-AFF-CV(#SUB)
*S** RESET #TR-AFF-F(#SUB)
*S** END-IF
*S** END-IF
*S** END-FOR
*S**END-SUBROUTINE /* DATA-EDIT-ROUTINE
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE FINAL-PROCESSING
*S*************************************************************************
*S***
*S** MOVE BY POSITION WW-GDA TO WW-PDA
*S***
*S** INCLUDE WWEND /* Restore environment.
*S** SET CONTROL 'K0' /* Reset *PF-KEY
*S**END-SUBROUTINE /* FINAL-PROCESSING
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE INITIALIZATIONS
*S*************************************************************************
*S***
*S*** Populate WW-GDA from WW-PDA
*S** MOVE BY POSITION WW-PDA TO WW-GDA
*S***
*S** INCLUDE WWBEGIN /* Capture environment.
*S** SET CONTROL 'WBM'
*S***
*S*** Specify which PF-KEYS are valid by using RESET INITIAL.
*S** INCLUDE WWPFSTD /* Standard PF-Keys
*S** RESET INITIAL WWKEYLDA.#NOTEPAD-KEY
*S** WWKEYLDA.#CALC-KEY
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S** INCLUDE WWSETKEY /* Set specified keys.
*S** INCLUDE WWSETHLP /* Set PFN=Help
*S**END-SUBROUTINE /* SET-KEYS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE UPDATE-TRANSCRIPT-DATA
*S*************************************************************************
*S** /*
*S** /* Update data
*S** /* Normally, loop thru each 'type' of REQUIREMENT record,
*S** /* however transcripts are, by definition, student specific,
*S** /* therefore only process Student specific records
*S** /* (blank aid year and aid period)
*S** RESET WFREQMTD
*S** /*
*S** /* 'Student' data
*S** RESET #ADD-REC
*S** ASSIGN WWAOBJ.#FUNCTION = 'GET'
*S** ASSIGN WFREQMTD.WW-STUDENT-ID = ##STUDENT-ID
*S** ASSIGN WFREQMTD.WF-FAO = ##FAO-ID
*S** ASSIGN WFREQMTD.WF-REQ-TYPE = #HOLD-REQ-TYPE
*S** PERFORM CALL-OBJECT
*S** IF WWAOBJ.#EXISTS
*S** /*
*S** /* Load REQUIREMENT record info into arrays
*S** MOVE BY NAME WFREQMTD.WF-REQ-DOCUMENTS TO
*S** #WF-REQUIREMENT.WF-REQ-DOCUMENTS
*S** ELSE
*S** ASSIGN #ADD-REC = TRUE
*S** END-IF
*S** /*
*S** /* Compare REQUIREMENT data array and array displayed on screen
*S** ASSIGN #REQ-TYPE = 'ST'
*S** PERFORM COMPARE-ARRAYS
*S** /*
*S** END TRANSACTION
*S** /*
*S**END-SUBROUTINE /* UPDATE-TRANSCRIPT-DATA
*S**END
C:\Documents and Settings\Dan\My Documents\share\FINANCIER\releases\Natural\1210-99\new\wfreqtrn.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
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Subprogram: WFREQTRN
*S*** System : FINANCIER
*S*** Title : Requirements Transcripts subprogram
*S*** Function : This program maintains the Transcript array in the
*S*** WF-REQUIREMENT file.
*S***
*S*** Copyright 1995 - 2011 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S** PARAMETER USING WWPDA
*S** PARAMETER
*S** 01 #ARRAYS(12)
*S** 02 #TR-SCHL(A9)
*S** 02 #TR-AY(A4)
*S** 02 #TR-STAT(A1)
*S** 02 #TR-STAT-DATE(A10)
*S** 02 #TR-NOT(A2)
*S** 02 #TR-AFF(A1)
*S***
*S** LOCAL USING WFREQMTD /* Passed to Object Subprogram WFREQMTO
*S** LOCAL USING WFREQMTR /* Passed to Object Subprogram WFREQMTO
*S** LOCAL USING WFREQMTS /* Shadow file
*S** LOCAL USING WWAOBJ /* Passed to Object Subprograms
*S***
*S** LOCAL USING WWCONST /* Constants LDA
*S** LOCAL USING WWDIALDA /* Local data for dialog objects.
*S** LOCAL USING WWENVIRA /* Used to capture/restore previous environment.
*S** LOCAL USING WWKEYLDA /* Used to set function keys + their alias.
*S** LOCAL USING WWVALLDA /* Valid value LDA
*S***
*S** LOCAL
*S** 01 #TRANSCRIPTS-CV(12)
*S** 02 #TR-SCHL-CV(C)
*S** 02 #TR-AY-CV(C)
*S** 02 #TR-STAT-CV(C)
*S** 02 #TR-STAT-DATE-CV(C)
*S** 02 #TR-NOT-CV(C)
*S** 02 #TR-AFF-CV(C)
*S** 01 #TRANSCRIPTS-F(12)
*S** 02 #TR-SCHL-F(L)
*S** 02 #TR-AY-F(L)
*S** 02 #TR-STAT-F(L)
*S** 02 #TR-STAT-DATE-F(L)
*S** 02 #TR-NOT-F(L)
*S** 02 #TR-AFF-F(L)
*S** 01 #SCHOOL-TRAN(12)
*S** 02 #TR-SCHL-TRANS(A30)
*S** 01 #UPDATE(12)
*S** 02 #UPDATED-DATA(L)
*S** 02 #UPDATED-STAT(L)
*S** 01 #SECURITY-PROGRAM(A8) INIT<'WFAPREQP'>
*S** /*
*S** /* Variables utilized by Requirement routine
*S** 01 #REQMNTS(3)
*S** 02 #REQMNT-TYPE(A1) /* (A/Application, D/Disbursement)
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S** 02 #REQMNT-DOC(A6) /* Document mnemonic
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S** 02 #REQMNT-PD(A2) /* (ST/Student, AY/Aid Year)
*S** INIT (1)<' '> (2)<' '> (3)<' '>
*S***
*S*** Miscellaneous variables.
*S** 01 #CURS-LINE(P5) /* Cursor select line.
*S** 01 #END-OF-DATA(L) /* End of logical read.
*S** 01 #END-OF-PAGE-LINE(P5) /* Line number where EOP starts.
*S** 01 #FIRST-INPUT(L) INIT<TRUE> /* Trigger End of Page.
*S** 01 #STD-KEY-PRESSED(L) INIT<TRUE>
*S** 01 #TOP-OF-PAGE(L) INIT<TRUE>
*S** 01 #FORWARD(L) INIT<TRUE>
*S** 01 #UPDATE-REC(L)
*S** 01 #ADD-REC(L)
*S** 01 #INSIDE-READ-LOOP(L) INIT<TRUE>
*S** 01 #BYPASS-READ(L) /* No paging
*S** 01 #SUB(P3)
*S** 01 #SUB2(P3)
*S** 01 #METH-SUB(N1)
*S** 01 REDEFINE #METH-SUB
*S** 02 #METH-SUB-RED(A1)
*S** 01 #CNT(P3)
*S** 01 #REQ-TYPE(A2)
*S** 01 #NEXT(L)
*S***
*S*** Define input fields.
*S***
*S*** Value of the scroll key on current record
*S** 01 #PANEL(P3) INIT<1> /* Left/Right panel number.
*S** 01 #HOLD-REQ-TYPE(A1)
*S** /*
*S** 01 #DISPLAYED-KEY(A1) /* Used by WWSTDKEY LDA
*S** /*
*S** 01 #PASS-TEMP(A30)
*S** 01 #PASS-KEY(A30)
*S** /*
*S** 01 #BYPASS-INPUT (L) /* Bypass
*S** /*
*S** 01 #WF-REQUIREMENT
*S** 02 WF-REQ-DOCUMENTS
*S** 03 WF-RE-D01-TYPE (A1)
*S** 03 WF-RE-D01-AFF (A1)
*S** 03 WF-RE-D01-STAT (A1)
*S** 03 WF-RE-D01-STAT-DATE (D)
*S** 03 WF-RE-D01-NOT (N2)
*S** 03 WF-RE-D01-TR-SCHL (A9)
*S** 03 WF-RE-D01-TR-AY (A4)
*S** 03 WF-RE-D01-ST-DOC (A6)
*S** 03 WF-RE-D02-TYPE (A1)
*S** 03 WF-RE-D02-AFF (A1)
*S** 03 WF-RE-D02-STAT (A1)
*S** 03 WF-RE-D02-STAT-DATE (D)
*S** 03 WF-RE-D02-NOT (N2)
*S** 03 WF-RE-D02-TR-SCHL (A9)
*S** 03 WF-RE-D02-TR-AY (A4)
*S** 03 WF-RE-D02-ST-DOC (A6)
*S** 03 WF-RE-D03-TYPE (A1)
*S** 03 WF-RE-D03-AFF (A1)
*S** 03 WF-RE-D03-STAT (A1)
*S** 03 WF-RE-D03-STAT-DATE (D)
*S** 03 WF-RE-D03-NOT (N2)
*S** 03 WF-RE-D03-TR-SCHL (A9)
*S** 03 WF-RE-D03-TR-AY (A4)
*S** 03 WF-RE-D03-ST-DOC (A6)
*S** 03 WF-RE-D04-TYPE (A1)
*S** 03 WF-RE-D04-AFF (A1)
*S** 03 WF-RE-D04-STAT (A1)
*S** 03 WF-RE-D04-STAT-DATE (D)
*S** 03 WF-RE-D04-NOT (N2)
*S** 03 WF-RE-D04-TR-SCHL (A9)
*S** 03 WF-RE-D04-TR-AY (A4)
*S** 03 WF-RE-D04-ST-DOC (A6)
*S** 03 WF-RE-D05-TYPE (A1)
*S** 03 WF-RE-D05-AFF (A1)
*S** 03 WF-RE-D05-STAT (A1)
*S** 03 WF-RE-D05-STAT-DATE (D)
*S** 03 WF-RE-D05-NOT (N2)
*S** 03 WF-RE-D05-TR-SCHL (A9)
*S** 03 WF-RE-D05-TR-AY (A4)
*S** 03 WF-RE-D05-ST-DOC (A6)
*S** 03 WF-RE-D06-TYPE (A1)
*S** 03 WF-RE-D06-AFF (A1)
*S** 03 WF-RE-D06-STAT (A1)
*S** 03 WF-RE-D06-STAT-DATE (D)
*S** 03 WF-RE-D06-NOT (N2)
*S** 03 WF-RE-D06-TR-SCHL (A9)
*S** 03 WF-RE-D06-TR-AY (A4)
*S** 03 WF-RE-D06-ST-DOC (A6)
*S** 03 WF-RE-D07-TYPE (A1)
*S** 03 WF-RE-D07-AFF (A1)
*S** 03 WF-RE-D07-STAT (A1)
*S** 03 WF-RE-D07-STAT-DATE (D)
*S** 03 WF-RE-D07-NOT (N2)
*S** 03 WF-RE-D07-TR-SCHL (A9)
*S** 03 WF-RE-D07-TR-AY (A4)
*S** 03 WF-RE-D07-ST-DOC (A6)
*S** 03 WF-RE-D08-TYPE (A1)
*S** 03 WF-RE-D08-AFF (A1)
*S** 03 WF-RE-D08-STAT (A1)
*S** 03 WF-RE-D08-STAT-DATE (D)
*S** 03 WF-RE-D08-NOT (N2)
*S** 03 WF-RE-D08-TR-SCHL (A9)
*S** 03 WF-RE-D08-TR-AY (A4)
*S** 03 WF-RE-D08-ST-DOC (A6)
*S** 03 WF-RE-D09-TYPE (A1)
*S** 03 WF-RE-D09-AFF (A1)
*S** 03 WF-RE-D09-STAT (A1)
*S** 03 WF-RE-D09-STAT-DATE (D)
*S** 03 WF-RE-D09-NOT (N2)
*S** 03 WF-RE-D09-TR-SCHL (A9)
*S** 03 WF-RE-D09-TR-AY (A4)
*S** 03 WF-RE-D09-ST-DOC (A6)
*S** 03 WF-RE-D10-TYPE (A1)
*S** 03 WF-RE-D10-AFF (A1)
*S** 03 WF-RE-D10-STAT (A1)
*S** 03 WF-RE-D10-STAT-DATE (D)
*S** 03 WF-RE-D10-NOT (N2)
*S** 03 WF-RE-D10-TR-SCHL (A9)
*S** 03 WF-RE-D10-TR-AY (A4)
*S** 03 WF-RE-D10-ST-DOC (A6)
*S** 03 WF-RE-D11-TYPE (A1)
*S** 03 WF-RE-D11-AFF (A1)
*S** 03 WF-RE-D11-STAT (A1)
*S** 03 WF-RE-D11-STAT-DATE (D)
*S** 03 WF-RE-D11-NOT (N2)
*S** 03 WF-RE-D11-TR-SCHL (A9)
*S** 03 WF-RE-D11-TR-AY (A4)
*S** 03 WF-RE-D11-ST-DOC (A6)
*S** 03 WF-RE-D12-TYPE (A1)
*S** 03 WF-RE-D12-AFF (A1)
*S** 03 WF-RE-D12-STAT (A1)
*S** 03 WF-RE-D12-STAT-DATE (D)
*S** 03 WF-RE-D12-NOT (N2)
*S** 03 WF-RE-D12-TR-SCHL (A9)
*S** 03 WF-RE-D12-TR-AY (A4)
*S** 03 WF-RE-D12-ST-DOC (A6)
*S** 03 WF-RE-D13-TYPE (A1)
*S** 03 WF-RE-D13-AFF (A1)
*S** 03 WF-RE-D13-STAT (A1)
*S** 03 WF-RE-D13-STAT-DATE (D)
*S** 03 WF-RE-D13-NOT (N2)
*S** 03 WF-RE-D13-TR-SCHL (A9)
*S** 03 WF-RE-D13-TR-AY (A4)
*S** 03 WF-RE-D13-ST-DOC (A6)
*S** 03 WF-RE-D14-TYPE (A1)
*S** 03 WF-RE-D14-AFF (A1)
*S** 03 WF-RE-D14-STAT (A1)
*S** 03 WF-RE-D14-STAT-DATE (D)
*S** 03 WF-RE-D14-NOT (N2)
*S** 03 WF-RE-D14-TR-SCHL (A9)
*S** 03 WF-RE-D14-TR-AY (A4)
*S** 03 WF-RE-D14-ST-DOC (A6)
*S** 03 WF-RE-D15-TYPE (A1)
*S** 03 WF-RE-D15-AFF (A1)
*S** 03 WF-RE-D15-STAT (A1)
*S** 03 WF-RE-D15-STAT-DATE (D)
*S** 03 WF-RE-D15-NOT (N2)
*S** 03 WF-RE-D15-TR-SCHL (A9)
*S** 03 WF-RE-D15-TR-AY (A4)
*S** 03 WF-RE-D15-ST-DOC (A6)
*S** 02 REDEFINE WF-REQ-DOCUMENTS
*S** 03 #REQ-DOCUMENTS(15)
*S** 04 #RE-D-TYPE (A1)
*S** 04 #RE-D-AFF (A1)
*S** 04 #RE-D-STAT (A1)
*S** 04 #RE-D-STAT-DATE (D)
*S** 04 #RE-D-NOT (N2)
*S** 04 #RE-D-TR-SCHL (A9)
*S** 04 #RE-D-TR-AY (A4)
*S** 04 #RE-D-ST-DOC (A6)
*S**END-DEFINE
*S***
*S***
*S**FORMAT ES=ON /* ES suppresses (WRITE ' ') output,
*S** /* needed for newpage processing
*S**PERFORM INITIALIZATIONS
*S**ASSIGN #HOLD-REQ-TYPE = ##PASS-KEY
*S***
*S**PROG.
*S**REPEAT /* Repeat loop to allow escape of program from within subroutine.
*S***
*S*************************************************************************
*S***
*S** /*
*S** DEFINE WINDOW TRNSCRPT
*S** SIZE 17*75
*S** BASE 4 / 3
*S** TITLE 'Transcripts'
*S** CONTROL SCREEN
*S** FRAMED ON (CD=NE)
*S** POSITION OFF
*S** SET WINDOW 'TRNSCRPT'
*S** ASSIGN ##COLOR = 'NE'
*S***
*S**NEW-READ.
*S** REPEAT /* Escape this repeat if no end of data processing.
*S** /*
*S** /* Security
*S** /* Perform first time and/or new student (set via Selection)
*S** MOVE 'WFREQMTD' TO ##FILE-ID
*S** MOVE #SECURITY-PROGRAM TO ##PGM-ID
*S** PERFORM REQUIREMENT-SECURITY REQUIREMENT-CNTL-VARS
*S** RESET INITIAL REQUIREMENT-LOGICALS
*S** MOVE RE-DOC-TYPE-CV TO #TR-SCHL-CV(*)
*S** #TR-AY-CV(*)
*S** #TR-STAT-CV(*)
*S** #TR-STAT-DATE-CV(*)
*S** #TR-NOT-CV(*)
*S** #TR-AFF-CV(*)
*S** PERFORM SET-KEYS
*S** IF ##PASS-SECURITY NE 'W' /* Force write access to
*S** RESET WWKEYLDA.#CALC-KEY /* allow calc
*S** END-IF
*S** /*
*S** IF #TOP-OF-PAGE
*S** NEWPAGE EVEN IF TOP OF PAGE
*S** ELSE
*S** WRITE NOTITLE ' '
*S** NEWPAGE
*S** END-IF
*S** /*
*S***
*S**READ-FILE. /* Escape this label if end of data processing is needed.
*S** REPEAT
*S** /*
*S** /* Display headings and load the scrolling table with key and
*S** /* Unique record identifier for backward/sideways scrolling.
*S** AT TOP OF PAGE
*S** ASSIGN #TOP-OF-PAGE = TRUE
*S** /*
*S** END-TOPPAGE
*S** /*
*S** /* Input the screen and check users PF keys.
*S** AT END OF PAGE
*S** /*
*S** /* Load school translations
*S** RESET #SCHOOL-TRAN(*)
*S** FOR #SUB = 1 TO 12
*S** IF #TR-SCHL(#SUB) = SPACE
*S** ESCAPE BOTTOM
*S** END-IF
*S** MOVE 'WFTSCPTD.WF-TR-D01-SCHOOL-ID' TO #PASS-KEY
*S** MOVE #TR-SCHL(#SUB) TO #PASS-TEMP
*S** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S** MOVE #PASS-TEMP TO #TR-SCHL-TRANS(#SUB)
*S** MOVE PROTECTED-ATTR TO #TR-SCHL-CV(#SUB)
*S** END-FOR
*S** /*
*S** INPUT WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFREQTRM'
*S** /*
*S** INCLUDE WWSTDCHK /* Check standard pf-keys
*S** IF #STD-KEY-PRESSED THEN
*S** ASSIGN #FORWARD = FALSE
*S** INCLUDE WWSTDKEY
*S** END-IF
*S** /*
*S** /* Requirement calculation done in summary screen logic
*S** IF *PF-KEY = WWKEYLDA.#CALC-KEY
*S** ASSIGN ##PASS-TEMP = 'CALC'
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** END-IF
*S** /*
*S** /* Check scroll keys.
*S** IF NOT(*PF-KEY = 'ENTR' OR
*S** = WWKEYLDA.#NOTEPAD-KEY)
*S** REINPUT FULL 'Invalid program function key' ALARM
*S** END-IF
*S** ASSIGN #FORWARD = TRUE
*S** /*
*S** IF *PF-KEY = 'ENTR'
*S** /*
*S** /* Check for data modification
*S** PERFORM DATA-EDIT-ROUTINE
*S** IF #FAIL-EDIT
*S** REINPUT FULL WITH TEXT 'Edit errors occurred'
*S** MARK #MARK-FIELD
*S** END-IF
*S** PERFORM UPDATE-TRANSCRIPT-DATA
*S** PERFORM EXIT-READ-LOOP
*S** END-IF
*S** /*
*S** END-ENDPAGE /* AT END OF PAGE
*S** END-REPEAT /* Find of file prime file.
*S** /*
*S** ASSIGN #INSIDE-READ-LOOP = FALSE
*S** ASSIGN #END-OF-DATA = TRUE
*S** /*
*S** IF #TOP-OF-PAGE
*S** NEWPAGE EVEN IF TOP OF PAGE
*S** ELSE
*S** WRITE NOTITLE ' '
*S** NEWPAGE
*S** END-IF
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE EXIT-READ-LOOP
*S*************************************************************************
*S***
*S** ESCAPE BOTTOM(NEW-READ.) IMMEDIATE
*S**END-SUBROUTINE /* EXIT-READ-LOOP
*S***
*S** END-REPEAT /* NEW-READ.
*S** /*
*S**END-REPEAT /* PROG.
*S**PERFORM FINAL-PROCESSING
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE CALL-OBJECT
*S*************************************************************************
*S***
*S*** Call WF-REQUIREMENT Object subprogram
*S** CALLNAT 'WFREQMTO' WW-GDA
*S** WFREQMTD
*S** WFREQMTD-ID
*S** WFREQMTR
*S** WWAOBJ
*S**END-SUBROUTINE /* CALL-OBJECT
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE COMPARE-ARRAYS
*S*************************************************************************
*S***
*S*** Compare arrays if data modified
*S** RESET #UPDATE-REC
*S** FOR #SUB = 1 TO 12
*S** IF #UPDATED-DATA(#SUB)
*S** FOR #SUB2 = 1 TO 15
*S** IF #RE-D-TYPE(#SUB2) = 'T' /* 'Transcript' type
*S** IF #RE-D-TR-SCHL(#SUB2) = #TR-SCHL(#SUB)
*S** /*
*S** /* Default status and/or affected flag
*S** IF #TR-STAT(#SUB) = SPACE
*S** MOVE 'R' TO #TR-STAT(#SUB)
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** END-IF
*S** IF #TR-AFF(#SUB) = SPACE
*S** MOVE 'Y' TO #TR-AFF(#SUB)
*S** END-IF
*S** MOVE #TR-AY(#SUB) TO #RE-D-TR-AY(#SUB2)
*S** MOVE #TR-STAT(#SUB) TO #RE-D-STAT(#SUB2)
*S** MOVE #TR-AFF(#SUB) TO #RE-D-AFF(#SUB2)
*S** IF #UPDATED-STAT(#SUB)
*S** MOVE *DATX TO #RE-D-STAT-DATE(#SUB2)
*S** MOVE EDITED *DATX(EM=MM/DD/YYYY) TO #TR-STAT-DATE(#SUB)
*S** END-IF
*S** ESCAPE BOTTOM
*S** END-IF
*S** ELSE
*S** IF #RE-D-TYPE(#SUB2) = SPACE /* First blank occurence
*S** MOVE 'T' TO #RE-D-TYPE(#SUB2)
*S** MOVE #TR-SCHL(#SUB) TO #RE-D-TR-SCHL(#SUB2)
*S** MOVE #TR-AY(#SUB) TO #RE-D-TR-AY(#SUB2)
*S** MOVE EDITED 00(EM=Z9) TO #TR-NOT(#SUB)
*S** /*
*S** /* Default status and/or affected flag
*S** IF #TR-STAT(#SUB) = SPACE
*S** MOVE 'R' TO #TR-STAT(#SUB)
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** END-IF
*S** IF #TR-AFF(#SUB) = SPACE
*S** MOVE 'Y' TO #TR-AFF(#SUB)
*S** END-IF
*S** MOVE #TR-STAT(#SUB) TO #RE-D-STAT(#SUB2)
*S** MOVE #TR-AFF(#SUB) TO #RE-D-AFF(#SUB2)
*S** IF #UPDATED-STAT(#SUB)
*S** MOVE *DATX TO #RE-D-STAT-DATE(#SUB2)
*S** MOVE EDITED *DATX(EM=MM/DD/YYYY) TO #TR-STAT-DATE(#SUB)
*S** END-IF
*S** ESCAPE BOTTOM
*S** END-IF
*S** END-IF
*S** END-FOR
*S** ASSIGN #UPDATE-REC = TRUE
*S** END-IF
*S** END-FOR
*S** /*
*S** /* Update data if modifications
*S** IF #UPDATE-REC
*S** IF #ADD-REC
*S** ASSIGN WWAOBJ.#FUNCTION = 'STORE'
*S** ELSE
*S** ASSIGN WWAOBJ.#FUNCTION = 'UPDATE'
*S** END-IF
*S** /*
*S** /* Load array into REQIREMENT record
*S** MOVE BY NAME #WF-REQUIREMENT.WF-REQ-DOCUMENTS TO
*S** WFREQMTD.WF-REQ-DOCUMENTS
*S** PERFORM CALL-OBJECT
*S** ASSIGN ##PASS-TEMP = 'CALC'
*S** END-IF
*S**END-SUBROUTINE /* COMPARE-ARRAYS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE DATA-EDIT-ROUTINE
*S*************************************************************************
*S***
*S*** Verify if data was modified and edit
*S** RESET #FAIL-EDIT #MARK-FIELD #UPDATE(*)
*S** FOR #SUB = 1 TO 12 /* Loop through array
*S** IF #TR-SCHL-CV(#SUB) MODIFIED OR
*S** #TR-SCHL-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-TR-SCHL'
*S** ASSIGN #VALUE = #TR-SCHL(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-SCHL(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-SCHL-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-SCHL-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-SCHL-CV(#SUB)
*S** RESET #TR-SCHL-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-AY-CV(#SUB) MODIFIED OR
*S** #TR-AY-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-TR-AY'
*S** ASSIGN #VALUE = #TR-AY(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-AY(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-AY-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-AY-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-AY-CV(#SUB)
*S** RESET #TR-AY-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-STAT-CV(#SUB) MODIFIED OR
*S** #TR-STAT-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-STAT'
*S** ASSIGN #VALUE = #TR-STAT(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-STAT(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-STAT-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-STAT-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** ASSIGN #UPDATED-STAT(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-STAT-CV(#SUB)
*S** RESET #TR-STAT-F(#SUB)
*S** END-IF
*S** END-IF
*S** IF #TR-AFF-CV(#SUB) MODIFIED OR
*S** #TR-AFF-F(#SUB)
*S** ASSIGN #FILE-FIELD = 'WFREQMTD.WF-RE-DOC-AFF'
*S** ASSIGN #VALUE = #TR-AFF(#SUB)
*S** ASSIGN #FIELD-POS = POS(#TR-AFF(#SUB))
*S** ASSIGN #EDIT-MASK = SPACE
*S** PERFORM CALL-EDITOR WWVALLDA
*S** IF NOT #VALID-VALUE OR NOT #VALID-MASK
*S** ASSIGN #TR-AFF-F(#SUB) = TRUE
*S** MOVE HI-LITE-ATTR TO #TR-AFF-CV(#SUB)
*S** ELSE
*S** ASSIGN #UPDATED-DATA(#SUB) = TRUE
*S** MOVE NORMAL-ATTR TO #TR-AFF-CV(#SUB)
*S** RESET #TR-AFF-F(#SUB)
*S** END-IF
*S** END-IF
*S** END-FOR
*S**END-SUBROUTINE /* DATA-EDIT-ROUTINE
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE FINAL-PROCESSING
*S*************************************************************************
*S***
*S** MOVE BY POSITION WW-GDA TO WW-PDA
*S***
*S** INCLUDE WWEND /* Restore environment.
*S** SET CONTROL 'K0' /* Reset *PF-KEY
*S**END-SUBROUTINE /* FINAL-PROCESSING
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE INITIALIZATIONS
*S*************************************************************************
*S***
*S*** Populate WW-GDA from WW-PDA
*S** MOVE BY POSITION WW-PDA TO WW-GDA
*S***
*S** INCLUDE WWBEGIN /* Capture environment.
*S** SET CONTROL 'WBM'
*S***
*S*** Specify which PF-KEYS are valid by using RESET INITIAL.
*S** INCLUDE WWPFSTD /* Standard PF-Keys
*S** RESET INITIAL WWKEYLDA.#NOTEPAD-KEY
*S** WWKEYLDA.#CALC-KEY
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S** INCLUDE WWSETKEY /* Set specified keys.
*S** INCLUDE WWSETHLP /* Set PFN=Help
*S**END-SUBROUTINE /* SET-KEYS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE UPDATE-TRANSCRIPT-DATA
*S*************************************************************************
*S** /*
*S** /* Update data
*S** /* Normally, loop thru each 'type' of REQUIREMENT record,
*S** /* however transcripts are, by definition, student specific,
*S** /* therefore only process Student specific records
*S** /* (blank aid year and aid period)
*S** RESET WFREQMTD
*S** /*
*S** /* 'Student' data
*S** RESET #ADD-REC
*S** ASSIGN WWAOBJ.#FUNCTION = 'GET'
*S** ASSIGN WFREQMTD.WW-STUDENT-ID = ##STUDENT-ID
*S** ASSIGN WFREQMTD.WF-FAO = ##FAO-ID
*S** ASSIGN WFREQMTD.WF-REQ-TYPE = #HOLD-REQ-TYPE
*S** PERFORM CALL-OBJECT
*S** IF WWAOBJ.#EXISTS
*S** /*
*S** /* Load REQUIREMENT record info into arrays
*S** MOVE BY NAME WFREQMTD.WF-REQ-DOCUMENTS TO
*S** #WF-REQUIREMENT.WF-REQ-DOCUMENTS
*S** ELSE
*S** ASSIGN #ADD-REC = TRUE
*S** END-IF
*S** /*
*S** /* Compare REQUIREMENT data array and array displayed on screen
*S** ASSIGN #REQ-TYPE = 'ST'
*S** PERFORM COMPARE-ARRAYS
*S** /*
*S** END TRANSACTION
*S** /*
*S**END-SUBROUTINE /* UPDATE-TRANSCRIPT-DATA
*S**END
Number of differences: 5
Added(8,0)
Deleted(0,0)
Changed(1)
Changed in changed(1)
Ignored