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

What are the different types of condition in cobol and write their forms.

667


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

681


Discuss about changing dataset name in proc.

769


Mention the guidelines to write a structured cobol program?

624


What are different data types in cobol?

699






What is a SSRANGE and NOSSRANGE?

834


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

429


What is amode(24)?

686


What are declaratives and what are their uses in cobol?

716


Give some examples of command terminators?

761


What are the different rules for performing sort operation?

770


Write down the divisions of cobol program?

673


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.

1707


What is a scope terminator give example?

661


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

652