How to use the same cobol program in Batch and CICS
onlines ? Please expalin with an example. Thanks in advance.



How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Than..

Answer / guest1

1) Compile your cobol program and keep in the LOAD LIB.
2) Your CICS program's PROCEDURE DIVISION should be coded as
PROCEDURE DIVISION USING DFHEIBLK, DFHCOMMAREA, <your
variable>
3) Define your variable in Linkage section
4) Call the sub program in your CICS coce.
5) Compile the COBOL + CICS coding(Ensure that the cobol
LIB is added).
6) Give CEMT Command in CICS Region and type your
transaction it.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


should I use Go back in the main program ? Yes we can use Go back in main program as well.

2 Answers   Xansa,


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


What is a report item?

0 Answers  


diffrence between renames and redifnes with examples

3 Answers   IBM,


can we use variable picture clause as xx.99 in cobol.

3 Answers  


What is the local-storage section?

0 Answers  


What is the difference between Perform para and perform asaection in cobol?

3 Answers   TCS,


give the examples for strings and unstrings in cobol

2 Answers   IBM,


what is the difference between start and startbr?

2 Answers  


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


Categories