Answer Posted / muttaiah
We can pass data from JCL to Cobol in 3 ways.
1. SYSIN: Normally and using files
2. Parm Parameter in Exec stmt
1. Sysin: Using this we can pass large amount of data. The
data passed using sysin will be accepted in cobol using
accept statement in procedure division.
//sysin dd *
adbcde
/*
or
//sysind dd dsn=<filename>,disp=shr
2. Parm: The parm parameter in Exec is used to send 100
char's of data from jcl step to cobol. This is accepted in
cobol usign linkage section. LInkage section should be
coded with Lenght and data fields.
//Stepname exec pgm=<PGManme>,parm='100 chars max'
Hope this will give you a clear picture than the other 2
answers.
Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
what is use of dsn parameter in dd statement?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
how do you code a null statement?
what are the types of abends that occur on job failure? And explain the possible causes of these
In sms datasets, what is the function of the dd mgmtclas keyword?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
Differentiate between addressing mode and run mode.
what operation is performed by job statement?
when can a job time-out occur? How to overcome that?
What is multithreading in jcl?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Can we use DISP=SHR in output file in JCL
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Is automatic restart possible in jcl?