What is difference between copy and include?
Answers were Sorted based on User's Feedback
Answer / s.v.venkata sivaprasad
both are same use to copy predefind structure or text in to
the program.
but copy will use in compilation
where as include will use in pre-compalation.
if u have any doubt mail me prasad.itcr@gmail.com
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / rajesh_m13
Copy Will expand at compilation time.
Include will expand at pre-compilation time.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / prabhat
As stated above, INCLUDE expands in precompilation and COPY
in compilation.
If that is the case, why we require INCLUDE, can't COPY be
used instead? Here is the reason:
DB2 precompiler can't process COPY statements, not it
connect to DB2 directories to validate the Table Attributes
(Columns, Name, Data Type) and thus uses the DCL statements
embedded in INCLUDE.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / guess
both can be used for same including the copy structures...
copy will be expand during compilation and include will be
expand during pre compilation...
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shabukumar
Both are used for copying the data.
However you cannot use copy verb in between exec and end-
exec.
so Include was used instead of copy.
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / ganesh
copy will used in compilation of pgm and include is used
before execution
| Is This Answer Correct ? | 0 Yes | 8 No |
What is the CICS supplied transaction which performs syntax checking of a CICS command?
Explain the difference between pseudo-conversational and conversational?
How to import the cics code for updations? what are steps do we need follow for execution again after modification? plz any body help me to know
What is MDT? What are FSET, FRSET ?
What is the MASSINSERT option?
what is the use of tsq and tdq....at what situation we need to use this...pls tell me....
Can you define temporary storage?
Suppose you are adding a new field in a map, and that field should also be added as a new column in DB2 table. How do you implement this? what is the impact analysis u will do?
In which CICS table would you specify the length of the TASK WORK AREA (TWA)?
Explain the various ways data can be passed between CICS programs.
What is the main function of the sign-on table?
Define cedf?