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

There is map and length of field need to modified, let take cust id=2 is previous of 2 byte and now it has to be 5 byte ? how to modified the cics code ?what are change need to done ? where where u will do change ?

3 Answers  


Can you define transid?

0 Answers  


Which command is used to release a record on which exclusive control is gained?

1 Answers  


Explain the difference between start and xctl?

0 Answers  


How will you access a VSAM file using an alternate index?

1 Answers   IBM,






Are sequential files supported by CICS?

1 Answers  


What are the differences between an EXEC CICS XCTL and an EXEC CICS LINK command.

1 Answers  


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

2 Answers   IBM,


Why must all CICS programs have a Linkage Section ?

4 Answers  


What is program reentrance?

0 Answers  


What is CICS ?

0 Answers  


Explain the difference between dfhcommarea and tsq?

0 Answers  


Categories