I have a COBOL program that Accepts some input data. How do
you code the JCL statement for this?
( How do you code instream data in a JCL? )

Answers were Sorted based on User's Feedback



I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / guest

//SYSIN DD*
input data
input data
/*

Is This Answer Correct ?    11 Yes 1 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / mahesh

You can pass the vlaues to the cobol program using PARM
coded in the jcl

Is This Answer Correct ?    4 Yes 2 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / ritesh kumar

ONE WAY OF ACCEPTING THE DATA IS
// SYSIN DD*

VALUE1
VALUE2
*/
AND OTHER WAY YOU CAN USE FILE TO ACCEPT THE DATA
INCLUDE THAT FILE INTO YOUR RUN JCL.

Is This Answer Correct ?    2 Yes 1 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / sandeep

ONE WAY OF ACCEPTING THE DATA IS
// SYSIN DD*

VALUE1
VALUE2
*/
AND OTHER WAY YOU CAN USE PARM PARAMETER IN YOUR JCL.
IN APPLICATION PROGRAM USE THAT DATA THROUHG LINKAGE
SECTION.

Is This Answer Correct ?    1 Yes 0 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / pratheep

ANOTHER WAY IS
//SYSIN=*
INPUT 1
INPUT 2
//

Is This Answer Correct ?    1 Yes 1 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / vibhor kumar

//SYSIN DD *
VALUE1 -
VALUE2 -
/*

ALL THE SOLUTIONS MENTIONED ABOVE FORGOT TO ADD CONTINUATION
CHARACTER (-)

Is This Answer Correct ?    2 Yes 2 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / ekta agrawal

ONE WAY OF ACCEPTING THE DATA IS
// SYSIN DD*

VALUE1
VALUE2
*/
and other way you can also give teh data thru SYSIN is:
// SYSIN DD DSN='DDPCN.EKTA.TEST',DISP=SHR

Is This Answer Correct ?    0 Yes 1 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / banupriya

ONE WAY OF ACCEPTING THE DATA IS
// SYSIN DD*

VALUE1
VALUE2
*/
and other way you can also give teh data thru SYSIN is:
// SYSIN DD DSN='DDPCN.EKTA.TEST',DISP=SHR

Is This Answer Correct ?    1 Yes 2 No

I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ..

Answer / shashidhar kalasannavar

You can pass the data to cobol program in three way and one
is instrem.

//SYSIN DD *
DATA1
DATA2
/*

or
//SYSIN DD DSN=SSK08.TEST.DATA,DISP=SHR


By intream you can send only 80 charecters

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More JCL Interview Questions

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?

10 Answers   IBM,


My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........

2 Answers  


Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?

2 Answers  


how would you create a temporary dataset? And where will you use them?

0 Answers  


What is the difference between sb37,se37,sd37 each?

9 Answers   TCS,






How to alter the parameters for the existing gdg?

0 Answers  


What is the use of DSNDB07 ?

1 Answers  


how to set dependancy for jobs?

4 Answers  


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


How many steps we can overide in the proc's?

2 Answers   CS,


If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute the 5th step how do i do this?

13 Answers   Cognizant, Convergys, IBM, TCS, Wipro,


Explain the function of //cntl statement?

0 Answers  


Categories