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

What is LENGTH in COBOL II?

2 Answers   CSC,


Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand

4 Answers   TCS,


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?

5 Answers  


What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,






How to read records from flat file in reverse order through COBOL program?

14 Answers   Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,


What compiler option would you use for dynamic linking?

2 Answers  


What COBOL construct is the COBOL II EVALUATE meant to replace?

1 Answers  


in cobol perform stmt whether it first checks the condition or not

9 Answers  


How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.

5 Answers   TCS,


give the examples of strings in cobol

1 Answers   IBM,


How to increase the logical record length of existing PS file?

7 Answers  


Categories