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

Given a input file with duplicates how to remove the duplicate records from the file using JCL?

6 Answers   CDS, Convergys, TCS,


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


write a jcl to execute a job by 7:00 am on jan 20,1986?

0 Answers   IBM,


Explain the function of a dd statement?

0 Answers  


Is their any set of rules for dd? Explain.

0 Answers  






hi,i have joined in mainframe course recently. ihave a doubt ragarding restart parameter.what is d use of it. and what is d syntax for it. any one give me d answer pls.

3 Answers  


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP in the JCL is SHR and the program opens the file in EXTEND mode. What happens ?

3 Answers  


Name a few IBM utility programs, and explain its function.

0 Answers  


How to send notification to multiple users through jcl???

8 Answers  


Is automatic restart possible in jcl? If yes, how?

0 Answers  


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


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,


Categories