View previous topic :: View next topic
|
Author |
Message |
zishankamal
New User
Joined: 07 Apr 2006 Posts: 7
|
|
|
|
Hi
Can we use
COPY <dclgen-name>
in place of
Exec Sql
Include <dclgen-name>
End-Exec
What are the differences between these two ways of including dclgen in cobol-db2 program.
Thanks
Zishan |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can't, since DB2's precompiler expands only EXEC SQL statements.
COPY is recognized only by COBOL compiler.
O. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
If you want to include a CopyBook which includes the DB2-TableFieldDeclarations, you have to use the ExecSqlInclude command.
Regards, UmeySan |
|
Back to top |
|
|
mfibm
New User
Joined: 12 Sep 2006 Posts: 13
|
|
|
|
YA KAMAL.......OFER IS RITE......
..INCLUDE WILL EXPAND AT DA TIME OF PRECOMPILATION AND COPY WILL EXPAND AT DA TIME OF COMPILATION TIME...............IF U USE COPY INSTEAD OF INCLUDE , U WILL GET STRUCK AT THE PRECOMPILATION SATEG ITSELF..........\
LikkI....... |
|
Back to top |
|
|
|