How to pass the parameters from jcl to assembler program?



How to pass the parameters from jcl to assembler program?..

Answer / Neeraj Kumar Diwakar

In a JCL (Job Control Language) script, parameters can be passed to an Assembler program using DD statements or macro definitions. Here's how:n
1. Using DD Statements:n - Define the parameters using DD statements in the JCL and pass them as external files to the Assembler program.nn Example:n // In JCL scriptn DD *,n MYFILE1,DISP=SHR,DSN=/path/to/myfile1.txt,n MYFILE2,DISP=SHR,DSN=/path/to/myfile2.txtnn - Access the parameters in the Assembler program using READ statements or other input/output instructions.n
2. Using Macro Definitions:n - Define macros in the JCL that contain parameter values, and use these macros in the Assembler program as if they were constants.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Assembler Interview Questions

WHAT WILL HAPPEN IF WE DROP THE BASE REGISTER IN THE PGM WHICH CONTAINS ONLY ONE BASEREG?

4 Answers   IBM, Tech Mahindra,


Is it possible to access some memory location (Ex: VAR1 DS P) without using Base Displacement?

1 Answers   HCL,


How do you round the addition or subtraction of two numbers in assembler?

1 Answers  


What will happen if we drop the base register in the program which contains only one basereg?

1 Answers  


What is base register?

23 Answers   IBM, Infosys,


how to find the dump

3 Answers   EDS,


Explain how to produce soc7 abend?

1 Answers  


what is need of START 0?. In steed of '0' can we use any other numerics?. if we use what will happen?.

4 Answers   CSC, TCS,


Explain about base register?

1 Answers  


change process tool( code changes from dev to prd) The changes made to your code should be effected in live. how the process takes place. that is how can you move the code changes from development to production.

1 Answers   EDS,


What does "using" do?

1 Answers  


How we can retrieve the instream data in SYSIN ?

2 Answers   Tech Mahindra,


Categories