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
List the different jcl statements that are not permitted in the procedures?
How can a stopped job be started again?
what is DSN parameter and DISP parameter is used for?
what sort card you will use to copy the data from one dataset to another dataset?
How to override loadlib?
Explain the function of a dd statement?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
when can a job time-out occur? How to overcome that?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Is it possible to left uncode disp? If yes, how?
How dummy is used in jcl?
How do you overcome this limitation ?
Explain the purpose of dd * statement in jcl?
Differentiate between addressing mode and run mode.