View previous topic :: View next topic
|
Author |
Message |
praneethgokul
New User
Joined: 06 May 2005 Posts: 20 Location: Bangalore
|
|
|
|
Hi
What is copybook in DB2? |
|
Back to top |
|
|
vaduguru
New User
Joined: 07 May 2005 Posts: 5
|
|
|
|
It may be dclgen... |
|
Back to top |
|
|
srikn81
New User
Joined: 22 Apr 2005 Posts: 2 Location: Bangalore
|
|
|
|
It may be SQLCA also.These we will include b/n
EXEC SQL
Include copybook
END-EXEC.
These are extracted during precompilation time.
Thanks & Regards
Srikanth. |
|
Back to top |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
Hi Praneeth,
COPYBOOK is a cobol code. Generally copy books are used for common date conversions and report titles. Same copy book concept we can use to copy the host variable declarations into a cobol program. That is the COPY BOOK.
Thanks,
Reddy. |
|
Back to top |
|
|
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
Hi,
copybook in db2 is same as the copy book in cobol which will be expanded during pre compilation time.
normally db2 copy books are sqlca, dclgen members.
copybooks are used for error routines, data validations etc...........
pavan |
|
Back to top |
|
|
vinoddevkar
New User
Joined: 13 Apr 2005 Posts: 9 Location: pune
|
|
|
|
Hi,
Copybook in DB2 is a description of working-storage variables which are declared in a Host language program...for EG: DCLGEN
EXEC SQL
INCLUDE DCLGEN MEMBER NAME
END-EXEC
MEMBER NAME IS DESCRIPTION OF WORKING STORAGE VARIBLES |
|
Back to top |
|
|
|