How can we pass data from cobol to JCl?
Answers were Sorted based on User's Feedback
Answer / sri
When someone ask you that question first thing you need to
do is you post a question to him.
Passing data from COBOL to JCL means where in JCL ?
Do you mean a file? File is also a part of JCL. If it is
file then your answer is WRITE the data into the file.
Do you mean a PDS member ? Then WRITE the data or what ever
into the PDS member.
Do you mean SYSOUT ? If so just DISPLAY the value.
If he says not these three then he need to tell what is the
purpose of moving data to JCL ? for you to give an answer.
|Is This Answer Correct ?||40 Yes||2 No|
Answer / guest
We can pass the data from cobol to JCl
ex: Move 4 t0o return code.
|Is This Answer Correct ?||28 Yes||4 No|
Answer / anil prajapati
we can pass data from cobol to jcl by using return-code
move 450 to return-code
if we are passing data likeit then at run time the maxx
return code will be this code if move code is a negative
number then after subtracting from 4096 maximum return code
will be displayed
|Is This Answer Correct ?||17 Yes||2 No|
Answer / rosi
i need help
i need Passing a variable parm from JCL to a cobol/db2
I'm trying to write a batch cobol/db2 pgm wich receive in
linkage section some paremeters
I succeeded to pass a static string of characters but what
I need is variable parameters (INPUT )
//DDB5A59 JOB CLASS=A,MSGCLASS=R,MSGLEVEL=
// SET INPUT=MYNAME
//PH01S01 EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=
RUN PROGRAM(COBPROG) PLAN(NACPLN) -
//INFILE DD DSN=MYDB(&INPUT),DISP=SHR
The program (cobprog) is that when I run the job ,if PARMS
('&INPUT') returns :&INPUT and
if PARMS(&INPUT) returns :null
i need "myname" to the cobol/db2 program and name of the
Do you think helpe me?
|Is This Answer Correct ?||6 Yes||4 No|
Answer / mr2981
by using file we can pass data ,by using return code
|Is This Answer Correct ?||9 Yes||14 No|
Answer / gigish thomas
create a Symbolic Parameter in jcl woith out goiving any
value.In the job step passthis symbolic parameter through
PARM parameter to cobol program.in the linkage section of
the cobol program assign the value/string to the symbolic
variable. It will automatically reflect to the symbolic
variable which was defined in JCL program.
|Is This Answer Correct ?||4 Yes||18 No|
Answer / vip
By using the parm parameter in jcl and defining the
datanames in the linkage section of the cobol program.
|Is This Answer Correct ?||9 Yes||30 No|
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
HELLO FRIENDS, THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
What are ISOLATION LEVELS? Where do we need to specify them?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
What are differences between COBOL and java ? why we are giving more preference to COBOL ?
DATAONLY, MAPONLY functionality?
How To move a value to an array using move verb?
What is the difference between SEARCH and SEARCH ALL?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is Static,Dynamic linking ?