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
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What are the parameters that are used in creating a gdg?
What is the format of comment statement?
What are the parameter we cannot use in procedure?
Is their any set of rules for dd? Explain.
how to compare two datasets without using superce because output is limited to 133 bytes
What is the function of dd disp parameter?
Differentiate between the joblib and the steplib statements?
Explain the hierarchy levels in jcl?
How can an in-stream dataset be terminated?
What is the difference between the positional and keyword parameters? Give examples.
what is the resolution for sb37 error
Can we call instream to catalog and catalog to instream?
What is the function of the dd dcb keyword?
What are some jcl statements that are not allowed in procedures?