What are the different ways to run a COBOL DB2 program
using JCL?
Answers were Sorted based on User's Feedback
cobol + db2 programs can be compiled by using precompiler(dsnhpc)...wich saperates cobol and db2 statements.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / ravikumar
using ikjeft01 utility
//systsin dd *
run program(pgm name) plan(plan name)
lib(lib name)
//
| Is This Answer Correct ? | 2 Yes | 1 No |
What is an in-line perform ?
Explain about level numbers?
what is the advantage of using redefines instead of delaring the variables ?
In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?
how would you resolve sb37 and SE37?
What are subroutines ? and how do we pass data to the sub routines?
DATAONLY, MAPONLY functionality?
comp-3 field occupy?
what is S04E error in jcl?
11 Answers IBM, L&T,
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.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
how to code in cobol while using variable block file?