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 |
I know my query will return more than one row but I don't want cursor what should I do?
What is the significance of 'above the line' and 'below the line'?
If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?
I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer
What is Redefines clause?
What is the difference between static call & Dynamic call?
How you can delete a record from a ps file in cobol?
What is the difference between goback, stop run and exit program in cobol?
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a program which is not calling any other program ?
without performing any operations on a file how can i know whether it contains data or not
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X