CSCI 465 Name _________________ Summer, 2009 Quiz 10 (10 points) Multiple-choice questions are 2 points each and true-false questions are 1 point each. Other problems are worth points marked. On multiple-choice questions, pick the best available answer. 1. Suppose I want to use DFSORT to sort a data set in descending order on a key which is in bytes 12 through 19 of each record. What DFSORT control statement will I need? A. SORT FIELDS=(8,12,,D) B. SORT FIELDS=(11,8,,D) C. SORT FIELDS=(12,19,,D) D. SORT FIELDS=(12,7,,D) *** E. SORT FIELDS=(12,8,,D) 2. Which of these is not a DD name we need when we run DFSORT? A. SORTIN B. SORTOUT *** C. SYSPRINT D. SYSIN E. SORTWK01 3. If we use an Input Procedure and an Output Procedure in a COBOL Sort operation (and use no extra DFSORT control statements), then the output data set must contain exactly as many records as the input data set. A. True *** B. False 4. In COBOL sorting, we can write a record into the workspace data set using the Release verb. *** A. True B. False 5. (4 points) In a COBOL program, we have the following in Working- Storage: 01 Item-1 Pic 99V9 Value 43.8 01 Item-2 Pic XXX Value ?TYX?. 01 Item-3 Pic 9V99 Value 3.14. 01 Item-4 Pic 99V99 Value 1.14. and in the Procedure Division, we have: Call 'SUBPROG' Using By Reference Item-1 By Content Item-2 By Reference Item-3 By Content Item-4. In SUBPROG, we have a Linkage Section including: 01 Q-1 Pic 9V99. 01 Q-2 Pic XXX. 01 Q-3 Pic 999. 01 Q-4 Pic 999V9. and we have Procedure Division Using Q-1, Q-2, Q-3, Q-4. and later on: Move 7.68 to Q-1. Move ?CWF? to Q-2. Move 18.7 to Q-3. Move 385.6 to Q-4. Suppose these are the only statements in SUBPROG which change the values of Q-1, Q-2, Q-3 and Q-4. What values will Item-1, Item-2, Item-3 and Item-4 have after control is returned to the calling program? (Write every byte of the value. If a decimal point is involved, print a ?V?.) Item-1 = __76V8____ Item-2 = ___TYX____ Item-3 = __0V18____ Item-4 = ___01V14__