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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What is QSAM error usually when it is occurs?
Describe the various parameters utilized in the creation of a gdg?
how to split a file
when we use sysprint and sysout statements
What is the meaning of keyword in JCL? What is its opposite?
What is a JCL Command statement ?
What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?
What do you understand by the term job time – out and how can you overcome that?
describe the dd statement,its meaning,syntax and keywords?
I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?
what happens if job falls in loop ? how to resolve it ?
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?