Question: 1. Write a program that displays Hello World! string. - Compile and run the program via a batch job. - Compile the program and then
1. Write a program that displays Hello World! string. - Compile and run the program via a batch job. - Compile the program and then run it under TSO.
2. Write a program that defines two variables A and B and multiplies them: - The result should be saved in variable C and then displayed. - A and B should be able to store numbers 0.00 999.99 while C: 0.000 99999.999. - Accept both variables via SYSIN.
3. Write a program with following paragraphs: - OPT-SELECT It accepts user input from SYSIN and on its basis executes a specific paragraph. - If the input is 1 "OPTION-1" paragraph is executed, if 2 "OPTION-2" paragraph is executed, 0 should end the program. If any other input is given program should execute "INPUT-ERROR" paragraph and end. - All paragraphs should only display a message about an executed paragraph. - Use IF statement for condition testing.
4. Write a program that accepts data passed via parameter, for example, JCL PARM keyword: - If the parameter was passed it displays "Success" and the value of the parameter. - If no parameter was passed the program displays "Failure" and ends.
5. Write a program that accepts data passed via parameter, for example, JCL PARM keyword: - If the parameter was passed it displays "Success" and the value of the parameter. - If no parameter was passed the program displays "Failure" and ends.
6. Modify program from Task#4. This time pass the option via parameter, not SYSIN and use EVALUATE statement instead of IF.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
