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
|
*S****SAG GENERATOR: WW-MENU Version: 3.2.2
*S****SAG TITLE: Need Analysis Menu
*S****SAG SYSTEM: FINANCIER
*S****SAG GDA: WWGDA
*S****SAG DESCS(1): This is the Need Analysis pop-up menu.
*S****SAG LINE(01): 01WFFSCNNP;Federal (Compressed Format)
*S****SAG LINE(02): 02WFFSANNP;Federal (FAFSA Format)
*S****SAG LINE(04): 03WFPRCNNP;CSS (Compressed Format)
*S****SAG LINE(05): 04WFPRANNP;CSS (Profile Format)
*S****SAG LINE(06): 05WFPFCNNP;CSS/Federal Comparison
*S****SAG LINE(08): 06WFMCLNNP;Need Analysis Calculations
*S****SAG HEADER1: FINANCIER
*S****SAG DIRECT-COMMAND-PROCESS:
*S****SAG MAP-NAME: WFMENUSM
*S****SAG FUNCTION-HEADING: System/Function/Explanation
*S****SAG DYNAMIC-ATTRIBUTES: :;
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFNDANLP
*S*** System : FINANCIER
*S*** Title : Need Analysis Menu
*S*** Generated: Nov 24,98 at 06:13 PM
*S*** Function : This is the Need Analysis pop-up menu.
*S***
*S***
*S***
*S***
*S*** Copyright 1995 - 2003 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*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 and names.
*S** LOCAL USING WWPXREFD /* Program cross reference.
*S** LOCAL
*S***
*S*** Miscellaneous local variables
*S** 01 #CODE-IN-LIST(A2/1:12) INIT<
*S** '01','02',' ','03','04','05',' ','06'>
*S** 01 #CODE(A2)
*S** 01 REDEFINE #CODE
*S** 02 #FIRST-CHAR-ON-SCREEN(A1)
*S** 01 #PF-CODE-LIST(A2/1:12) INIT<'01','02','03','04','05','06',
*S** '07','08','09','10','11','12'>
*S** 01 #DATA-STACKED(L)
*S** 01 #FUNCTION(A45/1:12) INIT<
*S** ';Federal (Compressed Format)',
*S** ';Federal (FAFSA Format)',
*S** ' ',
*S** ';CSS (Compressed Format)',
*S** ';CSS (Profile Format)',
*S** ';CSS/Federal Comparison',
*S** ' ',
*S** ';Need Analysis Calculations',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' '>
*S** 01 #PROGRAM-ARRAY
*S** 02 #PGM-ID-1(A8) INIT <'WFFSCNNP'>
*S** 02 #PGM-ID-2(A8) INIT <'WFFSANNP'>
*S** 02 #PGM-ID-3(A8) INIT <' '>
*S** 02 #PGM-ID-4(A8) INIT <'WFPRCNNP'>
*S** 02 #PGM-ID-5(A8) INIT <'WFPRANNP'>
*S** 02 #PGM-ID-6(A8) INIT <'WFPFCNNP'>
*S** 02 #PGM-ID-7(A8) INIT <' '>
*S** 02 #PGM-ID-8(A8) INIT <'WFMCLNNP'>
*S** 02 #PGM-ID-9(A8) INIT <' '>
*S** 02 #PGM-ID-10(A8) INIT <' '>
*S** 02 #PGM-ID-11(A8) INIT <' '>
*S** 02 #PGM-ID-12(A8) INIT <' '>
*S** 01 REDEFINE #PROGRAM-ARRAY
*S** 02 #PGM-ARRAY(A8/1:12)
*S** 01 #TAB(A1/1:12)
*S** 01 #TAB-CV(C/1:12)
*S** 01 #CODE-SUB(P3)
*S** 01 #PF-SUB(P3)
*S****SAG DEFINE EXIT DEFINE-PF-KEYS
*S**/*
*S**/* Menu PF-Key definitions
*S**01 #PF-KEY-DEF(A5/1:12)
*S** INIT <'F-Cmp','FAFSA','C-Cmp','Profl','CFCmp','Calcs',
*S** ' ',' ',' ',' ','Retrn','Menu'>
*S****SAG END-EXIT
*S**END-DEFINE
*S***
*S*** Define Formats
*S**FORMAT KD=ON
*S***
*S**PERFORM INITIALIZATIONS
*S***
*S****SAG DEFINE EXIT START-OF-PROGRAM
*S***
*S*** Processing to be performed after initializations
*S***
*S*** Setup Notepad default type in GDA
*S****SAG END-EXIT
*S***
*S*************************************************************************
*S***
*S**PROG.
*S**REPEAT
*S***
*S** IF *DATA GT 0 THEN
*S** ASSIGN #DATA-STACKED = TRUE
*S** ELSE
*S** ASSIGN #DATA-STACKED = FALSE
*S** END-IF
*S****SAG DEFINE EXIT DEFINE-WINDOW
*S**/*
*S**/* Define Window
*S** DEFINE WINDOW WFMENUSM
*S** SIZE 12*38
*S** BASE 8 / 24
*S** TITLE 'Need Analysis'
*S** CONTROL SCREEN
*S** FRAMED ON (CD=GR)
*S** POSITION OFF
*S**/*
*S****SAG END-EXIT
*S** /*
*S** /* Perform screen security routine
*S** INCLUDE WWSCRSCC
*S** PERFORM SET-KEYS
*S** /*
*S** INPUT WINDOW='WFMENUSM'
*S** WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFMENUSM'
*S** /*
*S** /* Clear the message line unless screen was not shown.
*S** IF NOT #DATA-STACKED THEN
*S** RESET ##MSG ##MSG-DATA(*) ##RETURN-CODE
*S** END-IF
*S** /*
*S** /* Assign #CODE based on cursor location
*S** ASSIGN #CODE-SUB = *CURS-LINE - 1
*S** IF NOT (#CODE-SUB = 1 THRU 12)
*S** ASSIGN #CODE = ' '
*S** ELSE
*S** ASSIGN #CODE = #CODE-IN-LIST(#CODE-SUB)
*S** END-IF
*S** /*
*S** /* Check if any PF-key pressed and load appropriate code
*S** DECIDE FOR FIRST CONDITION
*S** WHEN *PF-KEY = 'PF1'
*S** ASSIGN #CODE = #PF-CODE-LIST(1)
*S** WHEN *PF-KEY = 'PF2'
*S** ASSIGN #CODE = #PF-CODE-LIST(2)
*S** WHEN *PF-KEY = 'PF3'
*S** ASSIGN #CODE = #PF-CODE-LIST(3)
*S** WHEN *PF-KEY = 'PF4'
*S** ASSIGN #CODE = #PF-CODE-LIST(4)
*S** WHEN *PF-KEY = 'PF5'
*S** ASSIGN #CODE = #PF-CODE-LIST(5)
*S** WHEN *PF-KEY = 'PF6'
*S** ASSIGN #CODE = #PF-CODE-LIST(6)
*S** WHEN *PF-KEY = 'PF7'
*S** ASSIGN #CODE = #PF-CODE-LIST(7)
*S** WHEN *PF-KEY = 'PF8'
*S** ASSIGN #CODE = #PF-CODE-LIST(8)
*S** WHEN *PF-KEY = 'PF9'
*S** ASSIGN #CODE = #PF-CODE-LIST(9)
*S** WHEN *PF-KEY = 'PF10'
*S** ASSIGN #CODE = #PF-CODE-LIST(10)
*S** WHEN *PF-KEY = 'PF11'
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** WHEN *PF-KEY = 'PF12'
*S** PERFORM FINAL-PROCESSING
*S** FETCH ##MAIN
*S** WHEN *PF-KEY = 'PF15'
*S** FETCH ##QUIT #PROGRAM
*S** WHEN NONE
*S** IGNORE
*S** END-DECIDE
*S** /*
*S** /* Check for invalid PF-key
*S** IF *PF-KEY NE 'ENTR' AND #CODE = ' ' THEN
*S** REINPUT 'Invalid program function key' ALARM
*S** END-IF
*S** /*
*S** /* No PF-key pressed, decide on what to do based on code entered
*S** DECIDE ON FIRST #CODE
*S** /*
*S** /* Code: 01 ===> Federal (Compressed Format)
*S** /*
*S** VALUE '01'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFFSCNNP'
*S** ELSE
*S** FETCH RETURN 'WFFSCNNP'
*S** END-IF
*S** /*
*S** /* Code: 02 ===> Federal (FAFSA Format)
*S** /*
*S** VALUE '02'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFFSANNP'
*S** ELSE
*S** FETCH RETURN 'WFFSANNP'
*S** END-IF
*S** /*
*S** /* Code: 03 ===> CSS (Compressed Format)
*S** /*
*S** VALUE '03'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFPRCNNP'
*S** ELSE
*S** FETCH RETURN 'WFPRCNNP'
*S** END-IF
*S** /*
*S** /* Code: 04 ===> CSS (Profile Format)
*S** /*
*S** VALUE '04'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFPRANNP'
*S** ELSE
*S** FETCH RETURN 'WFPRANNP'
*S** END-IF
*S** /*
*S** /* Code: 05 ===> CSS/Federal Comparison
*S** /*
*S** VALUE '05'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFPFCNNP'
*S** ELSE
*S** FETCH RETURN 'WFPFCNNP'
*S** END-IF
*S** /*
*S** /* Code: 06 ===> Need Analysis Calculations
*S** /*
*S** VALUE '06'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFMCLNNP'
*S** ELSE
*S** FETCH RETURN 'WFMCLNNP'
*S** END-IF
*S** ANY
*S** RESET #CODE ##MSG
*S** NONE
*S** REINPUT 'Invalid menu option selected'
*S** MARK *#CODE ALARM
*S** END-DECIDE
*S**END-REPEAT
*S**PERFORM FINAL-PROCESSING
*S***
*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** PERFORM PROGRAM-XREF-LOAD WWPXREFD
*S** PERFORM SET-KEYS
*S** FOR #CODE-SUB = 1 TO 12
*S** IF #CODE-IN-LIST(#CODE-SUB) = SPACE
*S** MOVE NON-DISPLAY-PROT-ATTR TO #TAB-CV(#CODE-SUB)
*S** ELSE
*S** MOVE NON-DISPLAY-ATTR TO #TAB-CV(#CODE-SUB)
*S** END-IF
*S** END-FOR
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S*** Load Pf-key names
*S** SET KEY ALL
*S** DECIDE FOR EVERY CONDITION
*S** WHEN #PF-KEY-DEF(1) NOT = ' '
*S** SET KEY PF1=PGM NAMED #PF-KEY-DEF(1)
*S** WHEN #PF-KEY-DEF(2) NOT = ' '
*S** SET KEY PF2=PGM NAMED #PF-KEY-DEF(2)
*S** WHEN #PF-KEY-DEF(3) NOT = ' '
*S** SET KEY PF3=PGM NAMED #PF-KEY-DEF(3)
*S** WHEN #PF-KEY-DEF(4) NOT = ' '
*S** SET KEY PF4=PGM NAMED #PF-KEY-DEF(4)
*S** WHEN #PF-KEY-DEF(5) NOT = ' '
*S** SET KEY PF5=PGM NAMED #PF-KEY-DEF(5)
*S** WHEN #PF-KEY-DEF(6) NOT = ' '
*S** SET KEY PF6=PGM NAMED #PF-KEY-DEF(6)
*S** WHEN #PF-KEY-DEF(7) NOT = ' '
*S** SET KEY PF7=PGM NAMED #PF-KEY-DEF(7)
*S** WHEN #PF-KEY-DEF(8) NOT = ' '
*S** SET KEY PF8=PGM NAMED #PF-KEY-DEF(8)
*S** WHEN #PF-KEY-DEF(9) NOT = ' '
*S** SET KEY PF9=PGM NAMED #PF-KEY-DEF(9)
*S** WHEN #PF-KEY-DEF(10) NOT = ' '
*S** SET KEY PF10=PGM NAMED #PF-KEY-DEF(10)
*S** WHEN NONE
*S** IGNORE
*S** END-DECIDE
*S** SET KEY PF11=PGM NAMED #PF-KEY-DEF(11)
*S** SET KEY PF12=PGM NAMED #PF-KEY-DEF(12)
*S** SET KEY PF14=PGM NAMED 'Retrn'
*S** SET KEY PF15=PGM NAMED 'Quit'
*S**END-SUBROUTINE /* SET-KEYS
*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
|
*S****SAG GENERATOR: WW-MENU Version: 3.2.2
*S****SAG TITLE: Need Analysis Menu
*S****SAG SYSTEM: FINANCIER
*S****SAG GDA: WWGDA
*S****SAG DESCS(1): This is the Need Analysis pop-up menu.
*S****SAG LINE(01): 01WFFSCNNP;Federal (Compressed Format)
*S****SAG LINE(02): 02WFFSANNP;Federal (FAFSA Format)
*S****SAG LINE(08): 06WFMCLNNP;Need Analysis Calculations
*S****SAG HEADER1: FINANCIER
*S****SAG DIRECT-COMMAND-PROCESS:
*S****SAG MAP-NAME: WFMENUSM
*S****SAG FUNCTION-HEADING: System/Function/Explanation
*S****SAG DYNAMIC-ATTRIBUTES: :;
*S*************************************************************************
*S***
*S*** WolffPack
*S***
*S*** Program : WFNDANLP
*S*** System : FINANCIER
*S*** Title : Need Analysis Menu
*S*** Generated: Nov 24,98 at 06:13 PM
*S*** Function : This is the Need Analysis pop-up menu.
*S***
*S***
*S***
*S***
*S*** Copyright 1995 - 2003 WolffPack, Inc. All rights reserved.
*S***
*S*************************************************************************
*S**DEFINE DATA
*S** GLOBAL USING WWGDA
*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 and names.
*S** LOCAL USING WWPXREFD /* Program cross reference.
*S** LOCAL
*S***
*S*** Miscellaneous local variables
*S** 01 #CODE-IN-LIST(A2/1:12) INIT<
*S** '01','02',' ','03',' ',' ',' ',' '>
*S** 01 #CODE(A2)
*S** 01 REDEFINE #CODE
*S** 02 #FIRST-CHAR-ON-SCREEN(A1)
*S** 01 #PF-CODE-LIST(A2/1:12) INIT<'01','02','03','04','05','06',
*S** '07','08','09','10','11','12'>
*S** 01 #DATA-STACKED(L)
*S** 01 #FUNCTION(A45/1:12) INIT<
*S** ';Federal (Compressed Format)',
*S** ';Federal (FAFSA Format)',
*S** ' ',
*S** ';Need Analysis Calculations',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' ',
*S** ' '>
*S** 01 #PROGRAM-ARRAY
*S** 02 #PGM-ID-1(A8) INIT <'WFFSCNNP'>
*S** 02 #PGM-ID-2(A8) INIT <'WFFSANNP'>
*S** 02 #PGM-ID-3(A8) INIT <' '>
*S** 02 #PGM-ID-4(A8) INIT <'WFMCLNNP'>
*S** 02 #PGM-ID-5(A8) INIT <' '>
*S** 02 #PGM-ID-6(A8) INIT <' '>
*S** 02 #PGM-ID-7(A8) INIT <' '>
*S** 02 #PGM-ID-8(A8) INIT <' '>
*S** 02 #PGM-ID-9(A8) INIT <' '>
*S** 02 #PGM-ID-10(A8) INIT <' '>
*S** 02 #PGM-ID-11(A8) INIT <' '>
*S** 02 #PGM-ID-12(A8) INIT <' '>
*S** 01 REDEFINE #PROGRAM-ARRAY
*S** 02 #PGM-ARRAY(A8/1:12)
*S** 01 #TAB(A1/1:12)
*S** 01 #TAB-CV(C/1:12)
*S** 01 #CODE-SUB(P3)
*S** 01 #PF-SUB(P3)
*S****SAG DEFINE EXIT DEFINE-PF-KEYS
*S**/*
*S**/* Menu PF-Key definitions
*S**01 #PF-KEY-DEF(A5/1:12)
*S** INIT <'F-Cmp','FAFSA','Calcs',' ',' ',' ',
*S** ' ',' ',' ',' ','Retrn','Menu'>
*S****SAG END-EXIT
*S**END-DEFINE
*S***
*S*** Define Formats
*S**FORMAT KD=ON
*S***
*S**PERFORM INITIALIZATIONS
*S***
*S****SAG DEFINE EXIT START-OF-PROGRAM
*S***
*S*** Processing to be performed after initializations
*S***
*S*** Setup Notepad default type in GDA
*S****SAG END-EXIT
*S***
*S*************************************************************************
*S***
*S**PROG.
*S**REPEAT
*S***
*S** IF *DATA GT 0 THEN
*S** ASSIGN #DATA-STACKED = TRUE
*S** ELSE
*S** ASSIGN #DATA-STACKED = FALSE
*S** END-IF
*S****SAG DEFINE EXIT DEFINE-WINDOW
*S**/*
*S**/* Define Window
*S** DEFINE WINDOW WFMENUSM
*S** SIZE 8*38
*S** BASE 8 / 24
*S** TITLE 'Need Analysis'
*S** CONTROL SCREEN
*S** FRAMED ON (CD=GR)
*S** POSITION OFF
*S**/*
*S****SAG END-EXIT
*S** /*
*S** /* Perform screen security routine
*S** INCLUDE WWSCRSCC
*S** PERFORM SET-KEYS
*S** /*
*S** INPUT WINDOW='WFMENUSM'
*S** WITH TEXT ##MSG,
*S** ##MSG-DATA(1),##MSG-DATA(2),##MSG-DATA(3)
*S** USING MAP 'WFMENUSM'
*S** /*
*S** /* Clear the message line unless screen was not shown.
*S** IF NOT #DATA-STACKED THEN
*S** RESET ##MSG ##MSG-DATA(*) ##RETURN-CODE
*S** END-IF
*S** /*
*S** /* Assign #CODE based on cursor location
*S** ASSIGN #CODE-SUB = *CURS-LINE - 1
*S** IF NOT (#CODE-SUB = 1 THRU 12)
*S** ASSIGN #CODE = ' '
*S** ELSE
*S** ASSIGN #CODE = #CODE-IN-LIST(#CODE-SUB)
*S** END-IF
*S** /*
*S** /* Check if any PF-key pressed and load appropriate code
*S** DECIDE FOR FIRST CONDITION
*S** WHEN *PF-KEY = 'PF1'
*S** ASSIGN #CODE = #PF-CODE-LIST(1)
*S** WHEN *PF-KEY = 'PF2'
*S** ASSIGN #CODE = #PF-CODE-LIST(2)
*S** WHEN *PF-KEY = 'PF3'
*S** ASSIGN #CODE = #PF-CODE-LIST(3)
*S** WHEN *PF-KEY = 'PF4'
*S** ASSIGN #CODE = #PF-CODE-LIST(4)
*S** WHEN *PF-KEY = 'PF5'
*S** ASSIGN #CODE = #PF-CODE-LIST(5)
*S** WHEN *PF-KEY = 'PF6'
*S** ASSIGN #CODE = #PF-CODE-LIST(6)
*S** WHEN *PF-KEY = 'PF7'
*S** ASSIGN #CODE = #PF-CODE-LIST(7)
*S** WHEN *PF-KEY = 'PF8'
*S** ASSIGN #CODE = #PF-CODE-LIST(8)
*S** WHEN *PF-KEY = 'PF9'
*S** ASSIGN #CODE = #PF-CODE-LIST(9)
*S** WHEN *PF-KEY = 'PF10'
*S** ASSIGN #CODE = #PF-CODE-LIST(10)
*S** WHEN *PF-KEY = 'PF11'
*S** ESCAPE BOTTOM(PROG.) IMMEDIATE
*S** WHEN *PF-KEY = 'PF12'
*S** PERFORM FINAL-PROCESSING
*S** FETCH ##MAIN
*S** WHEN *PF-KEY = 'PF15'
*S** FETCH ##QUIT #PROGRAM
*S** WHEN NONE
*S** IGNORE
*S** END-DECIDE
*S** /*
*S** /* Check for invalid PF-key
*S** IF *PF-KEY NE 'ENTR' AND #CODE = ' ' THEN
*S** REINPUT 'Invalid program function key' ALARM
*S** END-IF
*S** /*
*S** /* No PF-key pressed, decide on what to do based on code entered
*S** DECIDE ON FIRST #CODE
*S** /*
*S** /* Code: 01 ===> Federal (Compressed Format)
*S** /*
*S** VALUE '01'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFFSCNNP'
*S** ELSE
*S** FETCH RETURN 'WFFSCNNP'
*S** END-IF
*S** /*
*S** /* Code: 02 ===> Federal (FAFSA Format)
*S** /*
*S** VALUE '02'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFFSANNP'
*S** ELSE
*S** FETCH RETURN 'WFFSANNP'
*S** END-IF
*S** /*
*S** /* Code: 03 ===> Need Analysis Calculations
*S** /*
*S** VALUE '03'
*S** IF *LEVEL = 1 THEN
*S** STACK TOP COMMAND *PROGRAM
*S** FETCH 'WFMCLNNP'
*S** ELSE
*S** FETCH RETURN 'WFMCLNNP'
*S** END-IF
*S** /*
*S** ANY
*S** RESET #CODE ##MSG
*S** NONE
*S** REINPUT 'Invalid menu option selected'
*S** MARK *#CODE ALARM
*S** END-DECIDE
*S**END-REPEAT
*S**PERFORM FINAL-PROCESSING
*S***
*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** PERFORM PROGRAM-XREF-LOAD WWPXREFD
*S** PERFORM SET-KEYS
*S** FOR #CODE-SUB = 1 TO 12
*S** IF #CODE-IN-LIST(#CODE-SUB) = SPACE
*S** MOVE NON-DISPLAY-PROT-ATTR TO #TAB-CV(#CODE-SUB)
*S** ELSE
*S** MOVE NON-DISPLAY-ATTR TO #TAB-CV(#CODE-SUB)
*S** END-IF
*S** END-FOR
*S**END-SUBROUTINE /* INITIALIZATIONS
*S***
*S*************************************************************************
*S**DEFINE SUBROUTINE SET-KEYS
*S*************************************************************************
*S***
*S*** Load Pf-key names
*S** SET KEY ALL
*S** DECIDE FOR EVERY CONDITION
*S** WHEN #PF-KEY-DEF(1) NOT = ' '
*S** SET KEY PF1=PGM NAMED #PF-KEY-DEF(1)
*S** WHEN #PF-KEY-DEF(2) NOT = ' '
*S** SET KEY PF2=PGM NAMED #PF-KEY-DEF(2)
*S** WHEN #PF-KEY-DEF(3) NOT = ' '
*S** SET KEY PF3=PGM NAMED #PF-KEY-DEF(3)
*S** WHEN #PF-KEY-DEF(4) NOT = ' '
*S** SET KEY PF4=PGM NAMED #PF-KEY-DEF(4)
*S** WHEN #PF-KEY-DEF(5) NOT = ' '
*S** SET KEY PF5=PGM NAMED #PF-KEY-DEF(5)
*S** WHEN #PF-KEY-DEF(6) NOT = ' '
*S** SET KEY PF6=PGM NAMED #PF-KEY-DEF(6)
*S** WHEN #PF-KEY-DEF(7) NOT = ' '
*S** SET KEY PF7=PGM NAMED #PF-KEY-DEF(7)
*S** WHEN #PF-KEY-DEF(8) NOT = ' '
*S** SET KEY PF8=PGM NAMED #PF-KEY-DEF(8)
*S** WHEN #PF-KEY-DEF(9) NOT = ' '
*S** SET KEY PF9=PGM NAMED #PF-KEY-DEF(9)
*S** WHEN #PF-KEY-DEF(10) NOT = ' '
*S** SET KEY PF10=PGM NAMED #PF-KEY-DEF(10)
*S** WHEN NONE
*S** IGNORE
*S** END-DECIDE
*S** SET KEY PF11=PGM NAMED #PF-KEY-DEF(11)
*S** SET KEY PF12=PGM NAMED #PF-KEY-DEF(12)
*S** SET KEY PF14=PGM NAMED 'Retrn'
*S** SET KEY PF15=PGM NAMED 'Quit'
*S**END-SUBROUTINE /* SET-KEYS
*S**END
|