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 ? | 23 Yes | 2 No |
Post New Answer View All Answers
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What does a disposition of (new,catlg,keep) for a dsn mean?
How to submit jcl through a cobol program?
what is DD statement is used in JCL?
In sms datasets, what is the function of the dd mgmtclas keyword?
Explain dd statement in jcl?
Define concatenating?
What is the syntax of JCL statement?
Explain the function of the dd dcb keyword?
How can the submitting users racf authority be overridden in a job stream?
What are the 2 types of parameters in dd statement?
How dummy is used in jcl?
How is the record format of an output dataset specified?
In job processing, what happens in execution stage?
Name what parameter directs the output of the job log dataset?