IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is copybook in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
praneethgokul

New User


Joined: 06 May 2005
Posts: 20
Location: Bangalore

PostPosted: Sat May 07, 2005 10:51 am
Reply with quote

Hi

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

New User


Joined: 07 May 2005
Posts: 5

PostPosted: Sat May 07, 2005 11:16 am
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
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: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Sun May 15, 2005 12:48 pm
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
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
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
No new posts Need to add field to copybook, proble... COBOL Programming 14
No new posts Recompiling programs after a copybook... COBOL Programming 1
Search our Forums:

Back to Top