Can you have CICS code in a copybook? If yes, what happens
during compilation?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How do you make your BMS maps case sensitive?
Can you simply check if length = 0 for checking if a field was modified?
what is the use of tsq and tdq....at what situation we need to use this...pls tell me....
when you compile a cics program, the (pre) compiler puts an extra chunk of code. Where does it get included and that is it called? What is its length?
Explain how do you establish a starting position in a browse operation?
With the use of an alternate index, how is a VSAM file accessed?
What is the use of using MDT in CICS? How it works?
Name and explain some common CICS abend codes?
How is addressability achieved to the data outside programs working-storage.?
What is a cics task?
Which CICS system program is responsible for handling automatic task initialization?
What are the CICS commands associated with transient data queue processing?