Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What is copybook in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
praneethgokul

New User


Joined: 06 May 2005
Posts: 20
Location: Bangalore

PostPosted: Sat May 07, 2005 10:51 am    Post subject: What is copybook in DB2
Reply with quote

Hi

What is copybook in DB2?
Back to top
View user's profile Send private message
References
vaduguru

New User


Joined: 07 May 2005
Posts: 3

PostPosted: Sat May 07, 2005 11:16 am    Post subject:
Reply with quote

It may be dclgen...
Back to top
View user's profile Send private message
srikn81

New User


Joined: 22 Apr 2005
Posts: 2
Location: Bangalore

PostPosted: Sat May 07, 2005 7:43 pm    Post subject: Re: Copybook
Reply with quote

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
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 200
Location: Keane India Ltd., Hyderabad

PostPosted: Sun May 15, 2005 12:48 pm    Post subject:
Reply with quote

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
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Mon May 16, 2005 5:19 pm    Post subject: copybook
Reply with quote

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
View user's profile Send private message
vinoddevkar

New User


Joined: 13 Apr 2005
Posts: 9
Location: pune

PostPosted: Mon May 16, 2005 5:36 pm    Post subject: Re: What is copybook in DB2
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1