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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes S(8) comp field occupy and its maximum value?

1624


how do you reference the ksds vsam file formats from cobol programs

650


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


For rewrite, why is it mandatory that file needs to be opened?

616


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1693






what is the difference between COBOL2 AND COBOL390?

2444


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

705


What is difference between static and dynamic call in cobol?

768


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1517


Whats the difference between search & search ALL?

5244


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1107


) what is the difference between AID and HANDLE AID?

1628


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


What are the cobol coding sheets?

657


What is the difference between structured cobol programming and object alternativelyiented cobol?

746