Can you have CICS code in a copybook? If yes, what happens
during compilation?

Answers were Sorted based on User's Feedback



Can you have CICS code in a copybook? If yes, what happens during compilation?..

Answer / murugan

Hi,

We can have CICS Code on the COPYBOOK. But On this
Case, You should have the Precompiler step Prior to the
Translator and Precompiler should have the SYSLIB where
your Copybook can get expanded.

Your COPYBOOK should be as INCLUDE XXXX Member but not
directly used as COPYBOOK COPY XXXX.

My System is having like this and Successfully running
for couple of Years!!!!!!!!

Is This Answer Correct ?    7 Yes 0 No

Can you have CICS code in a copybook? If yes, what happens during compilation?..

Answer / abhijit

Yes you can definitely have CICS commands in a copy book.
The prerequisite is that you need to first compile the copy
book as CICSEXEC(in case you are using endevor) type. Or
else you can compile it with any JCL that has a precompiler
step in it. Once the copy book is compiled then it can be
used in the application program.

Is This Answer Correct ?    0 Yes 0 No

Can you have CICS code in a copybook? If yes, what happens during compilation?..

Answer / manik

No, there should not any cics command in cics copy book

Because During Translation ,Translator gives two oupputs

Ther are 1.program listing as SYSPRINT

2.translated source as SYSPUNCH.

And copy books are included in the program during
compilation & afer Translation , so the exec cics commands
cannot cannot be translated & the system will not be able
to recognise those commands & will produce diagonistic
messages during compilation.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More CICS Interview Questions

mention the option (along with argument type) used in a cics command to retrieve the response code after execution of the command?

0 Answers   IBM,


What is the comaera?

0 Answers  


Can you explain enq and deq used in cics?

0 Answers  


How do you use altindxs in batch, cics programs?

0 Answers  


Specify CICS transaction initiation process. (From the perspective of CICS control programs and control tables.)

2 Answers   IBM,






What is the difference between a package and a plan. How does one bind 2 versions of a CICS

1 Answers  


I have the transaction name for cics screen.. With the transaction name, how will I find the cics program written for the transaction and BMS map program also...

4 Answers   CGI,


Receive consists of buffer option in it. What is the significance of this option?

0 Answers  


Can we use both FSET n FRSET together in BMS? And if yes then what will happen?

4 Answers  


What is the eib?

0 Answers  


What are the ways fot initiating a transaction?

0 Answers  


What are the types of processes to create a map in cics?

0 Answers  


Categories