How can values be passed from the job stream to an executable program?

  1. Through the PARM keyword

  2. Through the VALUE parameter

  3. Through the PGM parameter

  4. All of the above


Correct Option: A
Explanation:

To pass values from the job stream to an executable program, the user can use various methods. Let's go through each option and explain why it is right or wrong:

A. Through the PARM keyword: This option is correct. The PARM keyword is used to pass values from a job stream to an executable program. The values are passed as arguments to the program and can be accessed by the program using the standard programming language constructs.

B. Through the VALUE parameter: This option is incorrect. The VALUE parameter is not used for passing values from a job stream to an executable program. It is used for assigning a value to a symbolic parameter.

C. Through the PGM parameter: This option is incorrect. The PGM parameter is used to specify the name of the program to be executed. It is not used for passing values from a job stream to an executable program.

D. All of the above: This option is incorrect. Option A is the only correct option for passing values from a job stream to an executable program. The VALUE parameter is not used for this purpose, and the PGM parameter specifies the name of the program to be executed.

Therefore, the answer is: A

Find more quizzes: