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

I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest

2 Answers   IBM,


What are differences between COBOL and java ? why we are giving more preference to COBOL ?

3 Answers   TCS,


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?

14 Answers   Accenture, TCS,


What does the initialize statement do ?

2 Answers  






how can we fetch 3 records in cobol pgm any coding pls ?

3 Answers   CGI,


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


Whats the difference between search & search ALL?

3 Answers   IBM,


what is label record is standard or omitted in file description of data division?

3 Answers   IBM, TCS,


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

0 Answers  


Categories