How can we pass data from cobol to JCl?

Answer Posted / anil prajapati

we can pass data from cobol to jcl by using return-code
like
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 ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3?

882


Explain how you can characterize tables in cobol?

805


What guidelines should be followed to write a structured cobol prgm?

855


Explain how to differentiate call by context by comparing it to other calls?

893


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

910






How do we get current date from system with century in COBOL?

1044


What are all the divisions of a COBOL program?

871


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2340


how can i see junk values in dclgen or in hostvariable of comp ?

2741


Write a cobol program making use of the redefine clause.

915


how do you reference the variable block file formats from cobol programs

913


What are the different rules of SORT operation?

884


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5402


What is rmode(any) ?

887


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1020