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

interview type questions like basics&deep

0 Answers   TetraSoft,


Given below code, find the value of 'x'. Perform s001-x thru s001-y. s001-x. add 1 to x . s001-1x. ------- . s001-y. perform s001-1y 10 times . s001-1y. perform s001-2y 10 times . s001-2y. perform s001-x 10 times .

1 Answers  


Define the term transaction routing?

0 Answers  


When there are 2 records with the same key specified in a DELETE operation what will happen?

2 Answers  


When you compile a CICS program, the (pre)compiler puts an extra chunk of code. Where does it get stored

1 Answers  






How do you handle errors in CICS pgms ?

1 Answers   IBM,


Can you explain common systems area?

0 Answers  


Explain the basic difference between Intra partition TDQ and Extra partition TDQ.

2 Answers   IBM,


What does it mean when EIBCALEN is equal to 1 and other values?

5 Answers  


What is a logical message in CICS?

1 Answers   IBM, Syntel, Wipro,


What is meant by a CICS task?

4 Answers  


What is the type of ppt in the cics?

0 Answers  


Categories