describe the exec statement,its meaning ,syntax and
keywords?
Answer Posted / vish
Just an addition to the Hari's answer, EXEC is used to call
a PROC to, apart from calling a PROGRAM.
//step01 EXEC PGM=XYZ
//step02 EXEC XYZ
in first example (step01) it's calling a program XYZ
In second example (step02) it's calling a PROC XYZ
Do let me know if anyone have some other thoughts, enjoy!
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what happens in conversion stage in job processing?
What is condition checking in jcl? Is this possible?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is Cataloged Procedures?
what is the purpose of coding class parameter in job statement?
which parameter is use to declare the name of dataset in dd statement?
Explain how can the submitting users racf authority be overridden in a job stream?
How does the jcl specify the job to os?
Is condition checking possible in jcl?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
How is a type of file defined in the jcl that executes the cobol program?
define cond parameter in jcl?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?