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

What is COND=ONLY ?

2 Answers  


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

0 Answers   IBM,


Is automatic restart possible in jcl?

0 Answers  


hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)

8 Answers  


What is the function of //cntl statement?

0 Answers  


i have 6 steps in my jcl program after going to 5th step i want to execute 3rd step.....how can i do it....by using(RESTART) can i do it or not?

2 Answers   Wipro,


1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?

11 Answers  


Is there any command to check wether the ps file is in sorted order?

0 Answers   IBM,


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

0 Answers   IBM,


what is full form of AIX

3 Answers   Accenture,


what is the meaning of keyword in jcl?what is is opposite?

4 Answers  


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

0 Answers  


Categories