How we can Pass the parameters from JCL to assembler Pgm?

Answer Posted / phils

If you include a parameter string/Dataset in the JCL SYSIN
DD statement then this can be retrieved by an assembler
program via code such as...

OPEN SYSIN

GET SYSIN,WS_PARAM

CLOSE SYSIN

Obviously if there are multiple parameters defined then the
get statement would be in a loop and the contents would have
to be stored in separate working storage fields

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is house keeping in assembler?

583


how to retrieve the instream data in sysin?

672


Explain about maximum displacement?

596


Ap wkur,=p5 where wkur is a label?

660


Explain about base register?

597






What is need of start 0?

646


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

626


What does "using" do?

581


explain about maximum displacement and how to cross this limit?

686


what is need of start 0? In steed of

669


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

565


How many maximum base registers we can have in a single program?

623


How are data passed from jcl parm to assembler program?

573


How is data passed from a calling program to an assembler called program?

620


Explain the difference in data type "x" and "p"?

584