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

when an xctl is done, does the tranid change ? Is a new task created ? Does it cause an implicit syncpoint to be issued ?

0 Answers   IBM,


We can allocate memory dynamically by using GET MAIN command my question is at what scenario we can't release this memory and reuse this same memory??

0 Answers   BirlaSoft,


mention the option used in the cics read command to gain accessibility directly to the file i/o area. (Assume cobol-ii).?

0 Answers   IBM,


What are the various types of accesses that can be allowed by the SERVREQ option of the DFHFCT?

1 Answers  


NMDS is both device dependent and format dependent (True or False)

1 Answers  






How errors are handled in CICS programs?

0 Answers  


What is the significance of RDO?

1 Answers   IBM,


What tables must be updated when adding a new transaction and program?

2 Answers  


How do you access the records randomly in TSQ ?

2 Answers   IBM,


what is invreq condition?

3 Answers   IBM,


Can you use occurs in bms map?

0 Answers  


Which of the following are recoverable CICS resources?

1 Answers   IBM,


Categories