=================================== DAT2330 Test Five - MVS - Questions =================================== -IAN! idallen@ncf.ca The test had two versions. Both are below. =============================================================================== Part A: JCL Coding - 85% of 10 marks This test is closed book. No access is permitted to machines other than the Test Machine. You may not transfer any files or connect to any machine other than the Test Machine. The only aid permitted to you is the crib sheet you prepared and handed to me the day before the test. If you handed it in to me on time, you will receive it back before the start of the test. You will be provided with a blank sheet of paper on which you may draw a Flow Diagram, if you so choose. You must hand in the sheet of paper, blank or not, at the end of the test. At the end of the test, for full marks, return the following items: 1. This question sheet. 2. The Flow Diagram (or blank sheet). 3. Your multiple-choice mark-sense form. 4. Your crib sheet. You may not leave the test room until all these items have been returned. You must be running Floppix with networking to do this test. (Windows access will not be permitted. Floppix only.) You must have network access to use telnet to reach the Test Machine at the IP address given to you by your instructor. Your directory test_five is where you must put your JCL Job. You must name your answer file jcl.txt. The test_five directory is a sub-directory of your HOME directory on the Test Machine. This directory will be created when you log in to the Test Machine. Only the file test_five/jcl.txt on the Test Machine will be marked. _________________________________________________________________ Code all JCL for the following job. Use JCL comments to document any guesses you are forced to make [3 marks]; also, state whether an incorrect guess would cause a JCL error or a run-time error [2 marks]. You may draw a Flow Diagram for this question using the paper provided; but, it will not be marked. Hand in the paper when you leave, even if it is blank. Use the programmer name BRYAN ADAMS and the account code MIDMVS01. Request two less than highest priority within the JES-3 job queue. Request the JES-3 allocation messages; but, arrange that only our JCL prints (no PROC listing is needed). Send the job JCL and JES-3 message listings (about 100 lines) to a laser printer. First, use a program named NEWTAPE to read 2500 records of instream test data. The program will process the instream test data and create a new test dataset on tape #111111 using this COBOL source code: SELECT TESTFILE ASSIGN TO TESTOUT. FD TESTFILE RECORD CONTAINS 409 CHARACTERS BLOCK CONTAINS 0 RECORDS ORGANIZATION IS SEQUENTIAL. Delete this tape after its last use. This program will also produce about 2000 lines of print output on DDname OUTDAT that you should send to a laser printer. Next, use the procedure COBUSCLG to compile, link-edit and test an instream COBOL program. The compiler will read the COBOL source using DDname SYSUT1. The PROC link step is named CLNK, the compile step is named CPIL, and the test step is named CPGO. The test program will read the test data tape created in the pre­ vious step, using DDname MASTER. The program will create a new ANSI payment dataset of about 9000 records on a new tape (any tape). The COBOL code for this new ANSI tape dataset is below: SELECT UPDTMS ASSIGN TO TAPPAY. FD UPDTMS RECORD CONTAINS 199 CHARACTERS BLOCK CONTAINS 0 RECORDS ORGANIZATION IS SEQUENTIAL. Catalog this new ANSI tape dataset after its last use. The program will produce about 3000 lines of output on DDname TAPOUT that you should hold for viewing via TSO. The program will update a cataloged disk dataset of about 5000 records named NEWTEST using DDname UPDTMS. Lastly, after the test, copy the updated disk dataset from the previous step to any standard printer using IDCAMS. There is one line of output for every record in the input dataset. Also send IDCAMS status messages to any standard printer. In this shop, requests for specific tapes are in group TPG, non- specific tape requests are in group SCRATCH, and all disks are in group DKG. JES-3 job scheduler classes for our shop are as follows: CLASS U - no tapes, maximum 600 prt lines, no use of laser printer CLASS V - no tapes, maximum 11000 prt lines, no use of laser printer CLASS W - 1 tape, maximum 10000 prt lines, may use laser printer CLASS X - 2 tapes, maximum 12000 prt lines, may use laser printer CLASS Y - 3 tapes, no prt line maximum, may use laser printer JES-3 printer spooling classes for our shop are as follows: CLASS A - standard printer, maximum 500 print lines CLASS B - standard printer, maximum 4500 print lines CLASS C - standard printer, no print line maximum CLASS E - laser printer only, maximum 1000 print lines CLASS F - laser printer only, no print line maximum CLASS Z - hold for viewing from TSO terminal =============================================================================== Part A: JCL Coding - 85% of 10 marks This test is closed book. No access is permitted to machines other than the Test Machine. You may not transfer any files or connect to any machine other than the Test Machine. The only aid permitted to you is the crib sheet you prepared and handed to me the day before the test. If you handed it in to me on time, you will receive it back before the start of the test. You will be provided with a blank sheet of paper on which you may draw a Flow Diagram, if you so choose. You must hand in the sheet of paper, blank or not, at the end of the test. At the end of the test, for full marks, return the following items: 1. This question sheet. 2. The Flow Diagram (or blank sheet). 3. Your multiple-choice mark-sense form. 4. Your crib sheet. You may not leave the test room until all these items have been returned. You must be running Floppix with networking to do this test. (Windows access will not be permitted. Floppix only.) You must have network access to use telnet to reach the Test Machine at the IP address given to you by your instructor. Your directory test_five is where you must put your JCL Job. You must name your answer file jcl.txt. The test_five directory is a sub-directory of your HOME directory on the Test Machine. This directory will be created when you log in to the Test Machine. Only the file test_five/jcl.txt on the Test Machine will be marked. _________________________________________________________________ Code all JCL for the following job. Use JCL comments to document any guesses you are forced to make [3 marks]; also, state whether an incorrect guess would cause a JCL error or a run-time error [2 marks]. You may draw a Flow Diagram for this question using the paper provided; but, it will not be marked. Hand in the paper when you leave, even if it is blank. Use the programmer name ELTON JOHN and the account code MIDJCL01. Request one less than highest priority within the JES-2 job queue. Request the JES-2 allocation messages; but, arrange that only our JCL prints (no PROC listing is needed). Send the job JCL and JES-2 message listings (about 100 lines) to a laser printer. First, use a program named MAKETAPE to read 2500 records of instream test data. The program will process the instream test data and create a new test dataset on tape #999999 using this COBOL source code: SELECT TESTOUT ASSIGN TO TESTFILE. FD TESTOUT RECORD CONTAINS 407 CHARACTERS BLOCK CONTAINS 0 RECORDS ORGANIZATION IS SEQUENTIAL. Delete this tape after its last use. This program will also produce about 2000 lines of print output on DDname DATOUT that you should send to a laser printer. Next, use the procedure COBSUCLG to compile, link-edit and test an instream COBOL program. The compiler will read the COBOL source using DDname SYSUT2. The PROC link step is named PLNK, the compile step is named PPIL, and the test step is named PPGO. The test program will read the test data tape created in the pre­ vious step, using DDname TESTMAST. The program will create a new ANSI payment dataset of about 9000 records on a new tape (any tape). The COBOL code for this new ANSI tape dataset is below: SELECT PAYDAT ASSIGN TO UPDTMS. FD PAYDAT RECORD CONTAINS 198 CHARACTERS BLOCK CONTAINS 0 RECORDS ORGANIZATION IS SEQUENTIAL. Catalog this new ANSI tape dataset after its last use. The program will produce about 3000 lines of output on DDname OUTDAT that you should hold for viewing via TSO. The program will update a cataloged disk dataset of about 5000 records named TESTNEW using DDname PAYDAT. Lastly, after the test, copy the updated disk dataset from the previous step to any standard printer using IDCAMS. There is one line of output for every record in the input dataset. Also send IDCAMS status messages to any standard printer. In this shop, requests for specific tapes are in group TSG, non- specific tape requests are in group SCRATCH, and all disks are in group DSG. JES-2 job scheduler classes for our shop are as follows: CLASS P - no tapes, maximum 600 prt lines, no use of laser printer CLASS Q - no tapes, maximum 11000 prt lines, no use of laser printer CLASS R - 1 tape, maximum 10000 prt lines, may use laser printer CLASS S - 2 tapes, maximum 12000 prt lines, may use laser printer CLASS T - 3 tapes, no prt line maximum, may use laser printer JES-2 printer spooling classes for our shop are as follows: CLASS D - standard printer, maximum 500 print lines CLASS E - standard printer, maximum 4500 print lines CLASS F - standard printer, no print line maximum CLASS M - laser printer only, maximum 1000 print lines CLASS N - laser printer only, no print line maximum CLASS U - hold for viewing from TSO terminal