How to pass values in jcl to cobol?

Answers were Sorted based on User's Feedback



How to pass values in jcl to cobol?..

Answer / madhavansvce

In JCL we can pass value in parm parameter and received in
cobol in the linkage section by using length and data fields
to be defined in cobol.

Is This Answer Correct ?    33 Yes 4 No

How to pass values in jcl to cobol?..

Answer / 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

How to pass values in jcl to cobol?..

Answer / rekha

We can pass the data from JCL to COBOL
By using SYSIN statement or
By using PARM parameter.

Is This Answer Correct ?    22 Yes 3 No

How to pass values in jcl to cobol?..

Answer / ayyappa

PARM,SYSIN,Files,DB2 Tables,

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More JCL Interview Questions

describe the dd statement,its meaning,syntax and keywords?

1 Answers  


what is the use of IEBGENER utility?

0 Answers  


How do you override a specific DDNAME/SYSIN in PROC from a JCL?

6 Answers   CTS,


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


what is fixed length and variable length and difference between them

1 Answers   CGI, Wipro,






What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

2 Answers  


ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?

4 Answers   IBM,


i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?

2 Answers  


Does jcl support automatic restart?

0 Answers  


what is the difference between JES3 and JES2?

0 Answers  


how are instream data terminated?

3 Answers   Tech Mahindra,


Can we Execute a job without specifying Job Name in the Job Card?

2 Answers  


Categories