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
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
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Subroutine: WFISX25E
*S*** System : FINANCIER
*S*** Title : 2024-25 ISIR Extract routine
*S*** Function : This external subroutine extracts and formats a
*S*** subset of available ISIR information.
*S***
*S*** Copyright 1995 - 2024 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S** PARAMETER USING WFISX25D /* ISIR file extract PDA
*S***
*S** LOCAL USING WFISR25D /* Aidyear PDA
*S** LOCAL USING WFISR25R /*
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S** LOCAL
*S** 01 #HOLD-DATE(A8)
*S** 01 REDEFINE #HOLD-DATE
*S** 02 #HOLD-YY(A4)
*S** 02 #HOLD-MM(A2)
*S** 02 #HOLD-DD(A2)
*S***
*S** 01 #CNVT-NEG(L)
*S** 01 #CNVT-BYTE(A1)
*S** 01 #PASS-KEY(A30)
*S** 01 #PASS-TEMP(A30)
*S** 01 #15-BYTE-FIELD(A15)
*S** 01 #6-BYTE-FIELD(A6)
*S***
*S***
*S**END-DEFINE
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE EXTRACT-ISIR-2425
*S*************************************************************************
*S** /*
*S** /* Read ISIR record
*S** ASSIGN WFISR25D.WW-STUDENT-ID = ##STUDENT-ID
*S** ASSIGN WFISR25D.WF-FAO = ##FAO-ID
*S** ASSIGN WWAOBJ.#FUNCTION = 'GET'
*S** CALLNAT 'WFISR25O' WW-GDA
*S** WFISR25D
*S** WFISR25D-ID
*S** WFISR25R
*S** WWAOBJ
*S***
*S** RESET WFISX25D
*S** IF WWAOBJ.#EXISTS
*S** ASSIGN WFISX25D.#EXISTS = TRUE
*S** END-IF
*S***
*S** MOVE WFISR25D.WF-IS-C-PELL-ELIG TO #PELL-ELIG
*S** MOVE WFISR25D.WF-IS-C-MAX-PELL-IND TO #PELL-MAX
*S** MOVE WFISR25D.WF-IS-C-MIN-PELL-IND TO #PELL-MIN
*S** MOVE WFISR25D.WF-IS-C-CFLAG TO #CFLAG
*S** MOVE WFISR25D.WF-IS-C-TRANS-NO TO #TRANS-NO
*S** MOVE WFISR25D.WF-IS-C-VER TO #VER
*S** MOVE WFISR25D.WF-IS-C-S-MATCH-SSN TO #MATCH-SSN
*S** MOVE WFISR25D.WF-IS-C-MATCH-CIT TO #MATCH-CIT
*S** MOVE WFISR25D.WF-IS-C-MATCH-DHS TO #MATCH-DHS
*S** MOVE WFISR25D.WF-IS-C-MATCH-DHS2 TO #MATCH-DHS2
*S** MOVE WFISR25D.WF-IS-C-MATCH-VA TO #MATCH-VA
*S** MOVE WFISR25D.WF-IS-C-MATCH-NSL TO #MATCH-NSLDS
*S** MOVE WFISR25D.WF-IS-C-SP-MATCH-SSN TO #MATCH-SP
*S** MOVE WFISR25D.WF-IS-C-P1-MATCH-SSN TO #MATCH-P1
*S** MOVE WFISR25D.WF-IS-C-P2-MATCH-SSN TO #MATCH-P2
*S** MOVE WFISR25D.WF-IS-C-MATCH-HS TO #MATCH-HS
*S** MOVE WFISR25D.WF-IS-C-VER-TRACK TO #VER-TRACK
*S** MOVE WFISR25D.WF-IS-C-VER-DHS TO #VER-DHS
*S** MOVE WFISR25D.WF-IS-C-VER-NSL TO #VER-NSLDS
*S** MOVE WFISR25D.WF-IS-INCARCERATED TO #INCARCERATED
*S** MOVE WFISR25D.WF-IS-C-VER-HS TO #VER-HS
*S** MOVE WFISR25D.WF-IS-C-NSLDS-TRAN TO #TRAN-NSLDS
*S*****
*S** MOVE WFISR25D.WF-IS-C-REJ-RSNS TO #DISPLAY-REJECTS
*S*****
*S** IF WFISR25D.WF-IS-C-COM01 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM01 TO #COM01
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM02 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM02 TO #COM02
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM03 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM03 TO #COM03
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM04 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM04 TO #COM04
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM05 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM05 TO #COM05
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM06 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM06 TO #COM06
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM07 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM07 TO #COM07
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM08 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM08 TO #COM08
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM09 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM09 TO #COM09
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM10 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM10 TO #COM10
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM11 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM11 TO #COM11
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM12 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM12 TO #COM12
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM13 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM13 TO #COM13
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM14 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM14 TO #COM14
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM15 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM15 TO #COM15
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM16 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM16 TO #COM16
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM17 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM17 TO #COM17
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM18 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM18 TO #COM18
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM19 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM19 TO #COM19
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM20 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM20 TO #COM20
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-APP-SRCE TO #APP-SRCE
*S*** MOVE WFISR25D.WF-IS-C-ORIG-TYPE TO #ORIG-TYPE
*S** IF WFISR25D.WF-IS-C-APP-RCPT-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-APP-RCPT-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #APP-RCPT-DATE LEAVING NO
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-TRAN-SRCE TO #TRAN-SRCE
*S** MOVE WFISR25D.WF-IS-C-TRAN-TYPE TO #TRAN-TYPE
*S** IF WFISR25D.WF-IS-C-TRAN-RCPT-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-TRAN-RCPT-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #TRAN-RCPT-DATE LEAVING NO
*S** END-IF
*S** IF WFISR25D.WF-IS-C-TRAN-PROC-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-TRAN-PROC-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #TRAN-PROC-DATE LEAVING NO
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-ETI TO #ETI
*S** MOVE WFISR25D.WF-IS-C-PUSHED TO #PUSHED
*S** MOVE WFISR25D.WF-IS-C-SAI-CHG-FLAG TO #SAI-CHG
*S** MOVE WFISR25D.WF-IS-C-REJ-CHG TO #REJ-CHG
*S** MOVE WFISR25D.WF-IS-C-CFLAG-CHG TO #CFLAG-CHG
*S** MOVE WFISR25D.WF-IS-C-VER-CHG TO #VER-CHG
*S** MOVE WFISR25D.WF-IS-C-SAI-FORMULA TO #SAI-FORMULA
*S** MOVE WFISR25D.WF-IS-C-SAI-COMP-TYPE TO #SAI-COMP-TYPE
*S***
*S** MOVE WFISR25D.WF-IS-C-DEP-MODEL TO #DEP
*S** MOVE SUBSTRING(WFISR25D.WF-IS-FISAP-TOT-INC,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-FISAP-TOT-INC FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-FISAP-TOT-INC TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #FISAP = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 99999999
*S** ASSIGN #FISAP = 99999999
*S** ELSE
*S** ASSIGN #FISAP = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #FISAP BY -1
*S** END-IF
*S** END-IF
*S**
*S*** IF WFISR25D.WF-IS-C-AUTO-ZERO = 'Y'
*S*** MOVE 'B' TO #S-ANAL
*S*** ELSE
*S*** IF WFISR25D.WF-IS-C-FC1-FRMULA = '1'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '2'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '3'
*S*** MOVE 'R' TO #S-ANAL
*S*** ELSE
*S*** IF WFISR25D.WF-IS-C-FC1-FRMULA = '4'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '5'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '6'
*S*** MOVE 'S' TO #S-ANAL
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** IF #DEP = 'D' OR #DEP = 'X'
*S** MOVE #S-ANAL TO #P-ANAL
*S** END-IF
*S***
*S*** IF WFISR25D.WF-IS-C-FC1-TI = MASK(99999999)
*S*** ASSIGN #P-IT = VAL(WFISR25D.WF-IS-C-FC1-TI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-TI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-TI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-TI = MASK(99999999)
*S*** ASSIGN #P-IT = VAL(WFISR25D.WF-IS-C-FC1-TI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-IT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-STI = MASK(99999999)
*S*** ASSIGN #S-IT = VAL(WFISR25D.WF-IS-C-FC1-STI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-STI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-STI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-STI = MASK(99999999)
*S*** ASSIGN #S-IT = VAL(WFISR25D.WF-IS-C-FC1-STI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-IT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-STX = MASK(9999999)
*S*** ASSIGN #P-ST = VAL(WFISR25D.WF-IS-C-FC1-STX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-STX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-STX,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-STX = MASK(9999999)
*S*** ASSIGN #P-ST = VAL(WFISR25D.WF-IS-C-FC1-STX)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-ST BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-EA = MASK(9999999)
*S*** ASSIGN #P-EA = VAL(WFISR25D.WF-IS-C-FC1-EA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-EA,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-EA,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-EA = MASK(9999999)
*S*** ASSIGN #P-EA = VAL(WFISR25D.WF-IS-C-FC1-EA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-EA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-IPA = MASK(9999999)
*S*** ASSIGN #P-IPA = VAL(WFISR25D.WF-IS-C-FC1-IPA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-IPA,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-IPA,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-IPA = MASK(9999999)
*S*** ASSIGN #P-IPA = VAL(WFISR25D.WF-IS-C-FC1-IPA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-IPA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-ATI = MASK(9999999)
*S*** ASSIGN #P-AT = VAL(WFISR25D.WF-IS-C-FC1-ATI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-ATI,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-ATI,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-ATI = MASK(9999999)
*S*** ASSIGN #P-AT = VAL(WFISR25D.WF-IS-C-FC1-ATI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-SATI = MASK(9999999)
*S*** ASSIGN #S-AT = VAL(WFISR25D.WF-IS-C-FC1-SATI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-SATI,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-SATI,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-SATI = MASK(9999999)
*S*** ASSIGN #S-AT = VAL(WFISR25D.WF-IS-C-FC1-SATI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-AT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-AI = MASK(99999999)
*S*** ASSIGN #P-AI = VAL(WFISR25D.WF-IS-C-FC1-AI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-AI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-AI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-AI = MASK(99999999)
*S*** ASSIGN #P-AI = VAL(WFISR25D.WF-IS-C-FC1-AI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AI BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-NW = MASK(999999999)
*S*** ASSIGN #P-NW = VAL(WFISR25D.WF-IS-C-FC1-NW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-NW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-NW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-NW = MASK(999999999)
*S*** ASSIGN #P-NW = VAL(WFISR25D.WF-IS-C-FC1-NW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-NW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-APA = MASK(999999999)
*S*** ASSIGN #P-APA = VAL(WFISR25D.WF-IS-C-FC1-APA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-APA,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-APA,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-APA = MASK(999999999)
*S*** ASSIGN #P-APA = VAL(WFISR25D.WF-IS-C-FC1-APA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-APA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-DNW = MASK(999999999)
*S*** ASSIGN #P-DNW = VAL(WFISR25D.WF-IS-C-FC1-DNW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-DNW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-DNW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-DNW = MASK(999999999)
*S*** ASSIGN #P-DNW = VAL(WFISR25D.WF-IS-C-FC1-DNW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-DNW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-SDNW = MASK(999999999)
*S*** ASSIGN #S-DNW = VAL(WFISR25D.WF-IS-C-FC1-SDNW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-SDNW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-SDNW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-SDNW = MASK(999999999)
*S*** ASSIGN #S-DNW = VAL(WFISR25D.WF-IS-C-FC1-SDNW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-DNW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-AAI = MASK(99999999)
*S*** ASSIGN #P-AAI = VAL(WFISR25D.WF-IS-C-FC1-AAI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-AAI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-AAI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-AAI = MASK(99999999)
*S*** ASSIGN #P-AAI = VAL(WFISR25D.WF-IS-C-FC1-AAI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AAI BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-S-FED-TAX = MASK(9999999)
*S*** ASSIGN #S-FT = VAL(WFISR25D.WF-IS-S-FED-TAX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-S-FED-TAX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-S-FED-TAX,7,1)
*S*** IF WFISR25D.WF-IS-S-FED-TAX = MASK(9999999)
*S*** ASSIGN #S-FT = VAL(WFISR25D.WF-IS-S-FED-TAX)
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-P-FED-TAX = MASK(9999999)
*S*** ASSIGN #P-FT = VAL(WFISR25D.WF-IS-P-FED-TAX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-P-FED-TAX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-P-FED-TAX,7,1)
*S*** IF WFISR25D.WF-IS-P-FED-TAX = MASK(9999999)
*S*** ASSIGN #P-FT = VAL(WFISR25D.WF-IS-P-FED-TAX)
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-S-FAM-COL = MASK(9)
*S*** ASSIGN #S-NC = VAL(WFISR25D.WF-IS-S-FAM-COL)
*S*** END-IF
*S*** IF WFISR25D.WF-IS-P-FAM-COL = MASK(9)
*S*** ASSIGN #P-NC = VAL(WFISR25D.WF-IS-P-FAM-COL)
*S*** END-IF
*S*** IF #DEP = 'I' OR #DEP = 'Y'
*S*** MOVE #P-IT TO #S-IT
*S*** MOVE #P-ST TO #S-ST
*S*** MOVE #P-EA TO #S-EA
*S*** MOVE #P-IPA TO #S-IPA
*S*** MOVE #P-AT TO #S-AT
*S*** MOVE #P-AI TO #S-AI
*S*** MOVE #P-NW TO #S-NW
*S*** MOVE #P-APA TO #S-APA
*S*** MOVE #P-DNW TO #S-DNW
*S*** MOVE #P-AAI TO #S-AAI
*S*** RESET #P-IT #P-FT #P-ST #P-EA #P-IPA #P-AT #P-AI #P-NW #P-APA
*S*** #P-DNW #P-AAI #P-NC
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-TSC = MASK(9999999)
*S*** ASSIGN #S-CT = VAL(WFISR25D.WF-IS-C-FC1-TSC)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-TSC,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-TSC,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-TSC = MASK(9999999)
*S*** ASSIGN #S-CT = VAL(WFISR25D.WF-IS-C-FC1-TSC)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-CT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-S-FC1-CI,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-S-FC1-CI FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-S-FC1-CI TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #S-SCI = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #S-SCI = 9999999
*S** ELSE
*S** ASSIGN #S-SCI = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #S-SCI BY -1
*S** END-IF
*S** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-S-FC1-CA,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-S-FC1-CA FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-S-FC1-CA TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #S-SCA = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #S-SCA = 9999999
*S** ELSE
*S** ASSIGN #S-SCA = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #S-SCA BY -1
*S** END-IF
*S** END-IF
*S** IF (#S-SCI + #S-SCA) > 9999999
*S** ASSIGN #S-SC = 9999999
*S** ELSE
*S** ASSIGN #S-SC = #S-SCI + #S-SCA
*S** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-TPC = MASK(9999999)
*S*** ASSIGN #P-CT = VAL(WFISR25D.WF-IS-C-FC1-TPC)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-TPC,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-TPC,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-TPC = MASK(9999999)
*S*** ASSIGN #P-CT = VAL(WFISR25D.WF-IS-C-FC1-TPC)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-CT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-P1-FC1-CONT,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-P1-FC1-CONT FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-P1-FC1-CONT TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #P-PC = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #P-PC = 9999999
*S** ELSE
*S** ASSIGN #P-PC = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #P-PC BY -1
*S** END-IF
*S** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-PCA = MASK(9999999)
*S*** ASSIGN #P-PCA = VAL(WFISR25D.WF-IS-C-FC1-PCA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-PCA,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-PCA,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-PCA = MASK(9999999)
*S*** ASSIGN #P-PCA = VAL(WFISR25D.WF-IS-C-FC1-PCA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-PCA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-P1-FC1-CA,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-P1-FC1-CA FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-P1-FC1-CA TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #P-PCA = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #P-PCA = 9999999
*S** ELSE
*S** ASSIGN #P-PCA = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #P-PCA BY -1
*S** END-IF
*S** END-IF
*S** ASSIGN #P-PCI = #P-PC - #P-PCA
*S*** IF WFISR25D.WF-IS-C-FC1 = MASK(999999)
*S*** ASSIGN #PRI-EFC = VAL(WFISR25D.WF-IS-C-FC1)
*S*** END-IF
*S*** /*
*S*** /* Fill in masked values and/or translations
*S** MOVE SUBSTRING(WFISR25D.WF-IS-C-SAI,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-C-SAI FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-C-SAI TO #6-BYTE-FIELD
*S** EXAMINE #6-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #6-BYTE-FIELD = MASK(999999)
*S** ASSIGN #P-PCA = VAL(#6-BYTE-FIELD)
*S** IF VAL(#6-BYTE-FIELD) > 999999
*S** ASSIGN #PRI-SAI = 999999
*S** ELSE
*S** ASSIGN #PRI-SAI = VAL(#6-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #PRI-SAI BY -1
*S** END-IF
*S** END-IF
*S** MOVE EDITED #PRI-SAI(EM=ZZZ,ZZ9-) TO #PRI-SAI-MSK
*S** MOVE EDITED #P-PC(EM=Z,ZZZ,ZZZ-) TO #P-PC-MSK
*S** MOVE EDITED #P-PCA(EM=Z,ZZZ,ZZZ-) TO #P-PCA-MSK
*S** MOVE EDITED #P-PCI(EM=Z,ZZZ,ZZZ-) TO #P-PCI-MSK
*S** MOVE EDITED #S-SC(EM=Z,ZZZ,ZZZ-) TO #S-SC-MSK
*S** MOVE EDITED #S-SCA(EM=Z,ZZZ,ZZZ-) TO #S-SCA-MSK
*S** MOVE EDITED #S-SCI(EM=Z,ZZZ,ZZZ-) TO #S-SCI-MSK
*S*** MOVE 'WFAIDYND.WF-AY-M1-DEP' TO #PASS-KEY
*S*** MOVE #DEP TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #DEP-TRAN
*S*** MOVE 'WWSYSVRD.WF-CAL-ANAL' TO #PASS-KEY
*S*** MOVE #S-ANAL TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #S-ANAL-TRAN
*S*** MOVE 'WWSYSVRD.WF-CAL-ANAL' TO #PASS-KEY
*S*** MOVE #P-ANAL TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #P-ANAL-TRAN
*S**END-SUBROUTINE /* EXTRACT-ISIR-2425
*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
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
|
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Subroutine: WFISX25E
*S*** System : FINANCIER
*S*** Title : 2024-25 ISIR Extract routine
*S*** Function : This external subroutine extracts and formats a
*S*** subset of available ISIR information.
*S***
*S*** Copyright 1995 - 2024 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*S** PARAMETER USING WFISX25D /* ISIR file extract PDA
*S***
*S** LOCAL USING WFISR25D /* Aidyear PDA
*S** LOCAL USING WFISR25R /*
*S** LOCAL USING WWAOBJ /* Used by object subprograms
*S** LOCAL
*S** 01 #HOLD-DATE(A8)
*S** 01 REDEFINE #HOLD-DATE
*S** 02 #HOLD-YY(A4)
*S** 02 #HOLD-MM(A2)
*S** 02 #HOLD-DD(A2)
*S***
*S** 01 #CNVT-NEG(L)
*S** 01 #CNVT-BYTE(A1)
*S** 01 #PASS-KEY(A30)
*S** 01 #PASS-TEMP(A30)
*S** 01 #15-BYTE-FIELD(A15)
*S** 01 #6-BYTE-FIELD(A6)
*S***
*S***
*S**END-DEFINE
*S***
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE EXTRACT-ISIR-2425
*S*************************************************************************
*S** /*
*S** /* Read ISIR record
*S** ASSIGN WFISR25D.WW-STUDENT-ID = ##STUDENT-ID
*S** ASSIGN WFISR25D.WF-FAO = ##FAO-ID
*S** ASSIGN WWAOBJ.#FUNCTION = 'GET'
*S** CALLNAT 'WFISR25O' WW-GDA
*S** WFISR25D
*S** WFISR25D-ID
*S** WFISR25R
*S** WWAOBJ
*S***
*S** RESET WFISX25D
*S** IF WWAOBJ.#EXISTS
*S** ASSIGN WFISX25D.#EXISTS = TRUE
*S** END-IF
*S***
*S** MOVE WFISR25D.WF-IS-C-PELL-ELIG TO #PELL-ELIG
*S** MOVE WFISR25D.WF-IS-C-MAX-PELL-IND TO #PELL-MAX
*S** MOVE WFISR25D.WF-IS-C-MIN-PELL-IND TO #PELL-MIN
*S** MOVE WFISR25D.WF-IS-C-CFLAG TO #CFLAG
*S** MOVE WFISR25D.WF-IS-C-TRANS-NO TO #TRANS-NO
*S** MOVE WFISR25D.WF-IS-C-VER TO #VER
*S** MOVE WFISR25D.WF-IS-C-S-MATCH-SSN TO #MATCH-SSN
*S** MOVE WFISR25D.WF-IS-C-MATCH-CIT TO #MATCH-CIT
*S** MOVE WFISR25D.WF-IS-C-MATCH-DHS TO #MATCH-DHS
*S** MOVE WFISR25D.WF-IS-C-MATCH-DHS2 TO #MATCH-DHS2
*S** MOVE WFISR25D.WF-IS-C-MATCH-VA TO #MATCH-VA
*S** MOVE WFISR25D.WF-IS-C-MATCH-NSL TO #MATCH-NSLDS
*S** MOVE WFISR25D.WF-IS-C-SP-MATCH-SSN TO #MATCH-SP
*S** MOVE WFISR25D.WF-IS-C-P1-MATCH-SSN TO #MATCH-P1
*S** MOVE WFISR25D.WF-IS-C-P2-MATCH-SSN TO #MATCH-P2
*S** MOVE WFISR25D.WF-IS-C-MATCH-HS TO #MATCH-HS
*S** MOVE WFISR25D.WF-IS-C-VER-TRACK TO #VER-TRACK
*S** MOVE WFISR25D.WF-IS-C-VER-DHS TO #VER-DHS
*S** MOVE WFISR25D.WF-IS-C-VER-NSL TO #VER-NSLDS
*S** MOVE WFISR25D.WF-IS-INCARCERATED TO #INCARCERATED
*S** MOVE WFISR25D.WF-IS-C-VER-HS TO #VER-HS
*S** MOVE WFISR25D.WF-IS-C-NSLDS-TRAN TO #TRAN-NSLDS
*S*****
*S** MOVE WFISR25D.WF-IS-C-REJ-RSNS TO #DISPLAY-REJECTS
*S*****
*S** IF WFISR25D.WF-IS-C-COM01 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM01 TO #COM01
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM02 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM02 TO #COM02
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM03 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM03 TO #COM03
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM04 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM04 TO #COM04
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM05 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM05 TO #COM05
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM06 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM06 TO #COM06
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM07 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM07 TO #COM07
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM08 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM08 TO #COM08
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM09 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM09 TO #COM09
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM10 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM10 TO #COM10
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM11 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM11 TO #COM11
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM12 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM12 TO #COM12
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM13 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM13 TO #COM13
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM14 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM14 TO #COM14
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM15 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM15 TO #COM15
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM16 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM16 TO #COM16
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM17 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM17 TO #COM17
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM18 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM18 TO #COM18
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM19 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM19 TO #COM19
*S** END-IF
*S** IF WFISR25D.WF-IS-C-COM20 NE '000'
*S** MOVE WFISR25D.WF-IS-C-COM20 TO #COM20
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-APP-SRCE TO #APP-SRCE
*S*** MOVE WFISR25D.WF-IS-C-ORIG-TYPE TO #ORIG-TYPE
*S** IF WFISR25D.WF-IS-C-APP-RCPT-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-APP-RCPT-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #APP-RCPT-DATE LEAVING NO
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-TRAN-SRCE TO #TRAN-SRCE
*S** MOVE WFISR25D.WF-IS-C-TRAN-TYPE TO #TRAN-TYPE
*S** IF WFISR25D.WF-IS-C-TRAN-RCPT-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-TRAN-RCPT-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #TRAN-RCPT-DATE LEAVING NO
*S** END-IF
*S** IF WFISR25D.WF-IS-C-TRAN-PROC-DATE = MASK(YYYYMMDD)
*S** MOVE WFISR25D.WF-IS-C-TRAN-PROC-DATE TO #HOLD-DATE
*S** COMPRESS #HOLD-MM '/' #HOLD-DD '/' #HOLD-YY
*S** INTO #TRAN-PROC-DATE LEAVING NO
*S** END-IF
*S** MOVE WFISR25D.WF-IS-C-ETI TO #ETI
*S** MOVE WFISR25D.WF-IS-C-PUSHED TO #PUSHED
*S** MOVE WFISR25D.WF-IS-C-SAI-CHG-FLAG TO #SAI-CHG
*S** MOVE WFISR25D.WF-IS-C-REJ-CHG TO #REJ-CHG
*S** MOVE WFISR25D.WF-IS-C-CFLAG-CHG TO #CFLAG-CHG
*S** MOVE WFISR25D.WF-IS-C-VER-CHG TO #VER-CHG
*S** MOVE WFISR25D.WF-IS-C-SAI-FORMULA TO #SAI-FORMULA
*S** MOVE WFISR25D.WF-IS-C-SAI-COMP-TYPE TO #SAI-COMP-TYPE
*S***
*S** MOVE WFISR25D.WF-IS-C-DEP-MODEL TO #DEP
*S** MOVE SUBSTRING(WFISR25D.WF-IS-FISAP-TOT-INC,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-FISAP-TOT-INC FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-FISAP-TOT-INC TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #FISAP = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 99999999
*S** ASSIGN #FISAP = 99999999
*S** ELSE
*S** ASSIGN #FISAP = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #FISAP BY -1
*S** END-IF
*S** END-IF
*S**
*S*** IF WFISR25D.WF-IS-C-AUTO-ZERO = 'Y'
*S*** MOVE 'B' TO #S-ANAL
*S*** ELSE
*S*** IF WFISR25D.WF-IS-C-FC1-FRMULA = '1'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '2'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '3'
*S*** MOVE 'R' TO #S-ANAL
*S*** ELSE
*S*** IF WFISR25D.WF-IS-C-FC1-FRMULA = '4'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '5'
*S*** OR WFISR25D.WF-IS-C-FC1-FRMULA = '6'
*S*** MOVE 'S' TO #S-ANAL
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** IF #DEP = 'D' OR #DEP = 'X'
*S** MOVE #S-ANAL TO #P-ANAL
*S** END-IF
*S***
*S*** IF WFISR25D.WF-IS-C-FC1-TI = MASK(99999999)
*S*** ASSIGN #P-IT = VAL(WFISR25D.WF-IS-C-FC1-TI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-TI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-TI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-TI = MASK(99999999)
*S*** ASSIGN #P-IT = VAL(WFISR25D.WF-IS-C-FC1-TI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-IT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-STI = MASK(99999999)
*S*** ASSIGN #S-IT = VAL(WFISR25D.WF-IS-C-FC1-STI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-STI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-STI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-STI = MASK(99999999)
*S*** ASSIGN #S-IT = VAL(WFISR25D.WF-IS-C-FC1-STI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-IT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-STX = MASK(9999999)
*S*** ASSIGN #P-ST = VAL(WFISR25D.WF-IS-C-FC1-STX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-STX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-STX,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-STX = MASK(9999999)
*S*** ASSIGN #P-ST = VAL(WFISR25D.WF-IS-C-FC1-STX)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-ST BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-EA = MASK(9999999)
*S*** ASSIGN #P-EA = VAL(WFISR25D.WF-IS-C-FC1-EA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-EA,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-EA,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-EA = MASK(9999999)
*S*** ASSIGN #P-EA = VAL(WFISR25D.WF-IS-C-FC1-EA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-EA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-IPA = MASK(9999999)
*S*** ASSIGN #P-IPA = VAL(WFISR25D.WF-IS-C-FC1-IPA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-IPA,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-IPA,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-IPA = MASK(9999999)
*S*** ASSIGN #P-IPA = VAL(WFISR25D.WF-IS-C-FC1-IPA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-IPA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-ATI = MASK(9999999)
*S*** ASSIGN #P-AT = VAL(WFISR25D.WF-IS-C-FC1-ATI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-ATI,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-ATI,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-ATI = MASK(9999999)
*S*** ASSIGN #P-AT = VAL(WFISR25D.WF-IS-C-FC1-ATI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-SATI = MASK(9999999)
*S*** ASSIGN #S-AT = VAL(WFISR25D.WF-IS-C-FC1-SATI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-SATI,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-SATI,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-SATI = MASK(9999999)
*S*** ASSIGN #S-AT = VAL(WFISR25D.WF-IS-C-FC1-SATI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-AT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-AI = MASK(99999999)
*S*** ASSIGN #P-AI = VAL(WFISR25D.WF-IS-C-FC1-AI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-AI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-AI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-AI = MASK(99999999)
*S*** ASSIGN #P-AI = VAL(WFISR25D.WF-IS-C-FC1-AI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AI BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-NW = MASK(999999999)
*S*** ASSIGN #P-NW = VAL(WFISR25D.WF-IS-C-FC1-NW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-NW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-NW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-NW = MASK(999999999)
*S*** ASSIGN #P-NW = VAL(WFISR25D.WF-IS-C-FC1-NW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-NW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-APA = MASK(999999999)
*S*** ASSIGN #P-APA = VAL(WFISR25D.WF-IS-C-FC1-APA)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-APA,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-APA,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-APA = MASK(999999999)
*S*** ASSIGN #P-APA = VAL(WFISR25D.WF-IS-C-FC1-APA)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-APA BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-DNW = MASK(999999999)
*S*** ASSIGN #P-DNW = VAL(WFISR25D.WF-IS-C-FC1-DNW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-DNW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-DNW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-DNW = MASK(999999999)
*S*** ASSIGN #P-DNW = VAL(WFISR25D.WF-IS-C-FC1-DNW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-DNW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-SDNW = MASK(999999999)
*S*** ASSIGN #S-DNW = VAL(WFISR25D.WF-IS-C-FC1-SDNW)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-SDNW,9,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-SDNW,9,1)
*S*** IF WFISR25D.WF-IS-C-FC1-SDNW = MASK(999999999)
*S*** ASSIGN #S-DNW = VAL(WFISR25D.WF-IS-C-FC1-SDNW)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-DNW BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-AAI = MASK(99999999)
*S*** ASSIGN #P-AAI = VAL(WFISR25D.WF-IS-C-FC1-AAI)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-AAI,8,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-AAI,8,1)
*S*** IF WFISR25D.WF-IS-C-FC1-AAI = MASK(99999999)
*S*** ASSIGN #P-AAI = VAL(WFISR25D.WF-IS-C-FC1-AAI)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #P-AAI BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-S-FED-TAX = MASK(9999999)
*S*** ASSIGN #S-FT = VAL(WFISR25D.WF-IS-S-FED-TAX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-S-FED-TAX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-S-FED-TAX,7,1)
*S*** IF WFISR25D.WF-IS-S-FED-TAX = MASK(9999999)
*S*** ASSIGN #S-FT = VAL(WFISR25D.WF-IS-S-FED-TAX)
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-P-FED-TAX = MASK(9999999)
*S*** ASSIGN #P-FT = VAL(WFISR25D.WF-IS-P-FED-TAX)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-P-FED-TAX,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-P-FED-TAX,7,1)
*S*** IF WFISR25D.WF-IS-P-FED-TAX = MASK(9999999)
*S*** ASSIGN #P-FT = VAL(WFISR25D.WF-IS-P-FED-TAX)
*S*** END-IF
*S*** END-IF
*S*** IF WFISR25D.WF-IS-S-FAM-COL = MASK(9)
*S*** ASSIGN #S-NC = VAL(WFISR25D.WF-IS-S-FAM-COL)
*S*** END-IF
*S*** IF WFISR25D.WF-IS-P-FAM-COL = MASK(9)
*S*** ASSIGN #P-NC = VAL(WFISR25D.WF-IS-P-FAM-COL)
*S*** END-IF
*S*** IF #DEP = 'I' OR #DEP = 'Y'
*S*** MOVE #P-IT TO #S-IT
*S*** MOVE #P-ST TO #S-ST
*S*** MOVE #P-EA TO #S-EA
*S*** MOVE #P-IPA TO #S-IPA
*S*** MOVE #P-AT TO #S-AT
*S*** MOVE #P-AI TO #S-AI
*S*** MOVE #P-NW TO #S-NW
*S*** MOVE #P-APA TO #S-APA
*S*** MOVE #P-DNW TO #S-DNW
*S*** MOVE #P-AAI TO #S-AAI
*S*** RESET #P-IT #P-FT #P-ST #P-EA #P-IPA #P-AT #P-AI #P-NW #P-APA
*S*** #P-DNW #P-AAI #P-NC
*S*** END-IF
*S*** IF WFISR25D.WF-IS-C-FC1-TSC = MASK(9999999)
*S*** ASSIGN #S-CT = VAL(WFISR25D.WF-IS-C-FC1-TSC)
*S*** ELSE
*S*** MOVE SUBSTRING(WFISR25D.WF-IS-C-FC1-TSC,7,1) TO #CNVT-BYTE
*S*** PERFORM CONVERT-SIGNS #CNVT-BYTE #CNVT-NEG
*S*** MOVE #CNVT-BYTE TO SUBSTRING(WFISR25D.WF-IS-C-FC1-TSC,7,1)
*S*** IF WFISR25D.WF-IS-C-FC1-TSC = MASK(9999999)
*S*** ASSIGN #S-CT = VAL(WFISR25D.WF-IS-C-FC1-TSC)
*S*** IF #CNVT-NEG
*S*** MULTIPLY #S-CT BY -1
*S*** END-IF
*S*** END-IF
*S*** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-S-FC1-CI,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-S-FC1-CI FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-S-FC1-CI TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #S-SCI = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #S-SCI = 9999999
*S** ELSE
*S** ASSIGN #S-SCI = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #S-SCI BY -1
*S** END-IF
*S** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-S-FC1-CA,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-S-FC1-CA FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-S-FC1-CA TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #S-SCA = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #S-SCA = 9999999
*S** ELSE
*S** ASSIGN #S-SCA = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #S-SCA BY -1
*S** END-IF
*S** END-IF
*S** IF (#S-SCI + #S-SCA) > 9999999
*S** ASSIGN #S-SC = 9999999
*S** ELSE
*S** ASSIGN #S-SC = #S-SCI + #S-SCA
*S** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-P1-FC1-CONT,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-P1-FC1-CONT FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-P1-FC1-CONT TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #P-PC = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #P-PC = 9999999
*S** ELSE
*S** ASSIGN #P-PC = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #P-PC BY -1
*S** END-IF
*S** END-IF
*S** MOVE SUBSTRING(WFISR25D.WF-IS-P1-FC1-CA,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-P1-FC1-CA FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-P1-FC1-CA TO #15-BYTE-FIELD
*S** EXAMINE #15-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #15-BYTE-FIELD = MASK(999999999999999)
*S** ASSIGN #P-PCA = VAL(#15-BYTE-FIELD)
*S** IF VAL(#15-BYTE-FIELD) > 9999999
*S** ASSIGN #P-PCA = 9999999
*S** ELSE
*S** ASSIGN #P-PCA = VAL(#15-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #P-PCA BY -1
*S** END-IF
*S** END-IF
*S** ASSIGN #P-PCI = #P-PC - #P-PCA
*S** /* Fill in masked values and/or translations
*S** MOVE SUBSTRING(WFISR25D.WF-IS-C-SAI,1,1) TO #CNVT-BYTE
*S** RESET #CNVT-NEG
*S** IF #CNVT-BYTE = '-'
*S** ASSIGN #CNVT-NEG = TRUE
*S** EXAMINE WFISR25D.WF-IS-C-SAI FOR '-' DELETE
*S** END-IF
*S** MOVE RIGHT JUSTIFIED WFISR25D.WF-IS-C-SAI TO #6-BYTE-FIELD
*S** EXAMINE #6-BYTE-FIELD FOR ' ' REPLACE WITH '0'
*S** IF #6-BYTE-FIELD = MASK(999999)
*S** ASSIGN #P-PCA = VAL(#6-BYTE-FIELD)
*S** IF VAL(#6-BYTE-FIELD) > 999999
*S** ASSIGN #PRI-SAI = 999999
*S** ELSE
*S** ASSIGN #PRI-SAI = VAL(#6-BYTE-FIELD)
*S** END-IF
*S** IF #CNVT-NEG
*S** MULTIPLY #PRI-SAI BY -1
*S** END-IF
*S** END-IF
*S** MOVE EDITED #PRI-SAI(EM=ZZZ,ZZ9-) TO #PRI-SAI-MSK
*S** MOVE EDITED #P-PC(EM=Z,ZZZ,ZZZ-) TO #P-PC-MSK
*S** MOVE EDITED #P-PCA(EM=Z,ZZZ,ZZZ-) TO #P-PCA-MSK
*S** MOVE EDITED #P-PCI(EM=Z,ZZZ,ZZZ-) TO #P-PCI-MSK
*S** MOVE EDITED #S-SC(EM=Z,ZZZ,ZZZ-) TO #S-SC-MSK
*S** MOVE EDITED #S-SCA(EM=Z,ZZZ,ZZZ-) TO #S-SCA-MSK
*S** MOVE EDITED #S-SCI(EM=Z,ZZZ,ZZZ-) TO #S-SCI-MSK
*S*** MOVE 'WFAIDYND.WF-AY-M1-DEP' TO #PASS-KEY
*S*** MOVE #DEP TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #DEP-TRAN
*S*** MOVE 'WWSYSVRD.WF-CAL-ANAL' TO #PASS-KEY
*S*** MOVE #S-ANAL TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #S-ANAL-TRAN
*S*** MOVE 'WWSYSVRD.WF-CAL-ANAL' TO #PASS-KEY
*S*** MOVE #P-ANAL TO #PASS-TEMP
*S*** PERFORM GET-VALUE-TRANSLATION #PASS-KEY #PASS-TEMP
*S*** MOVE #PASS-TEMP TO #P-ANAL-TRAN
*S**END-SUBROUTINE /* EXTRACT-ISIR-2425
*S**END
|