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

help about copybook


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

New User


Joined: 12 Aug 2005
Posts: 1
Location: chennai

PostPosted: Fri Aug 12, 2005 10:49 am
Reply with quote

hi everyone.
am in mainframe training in my company,
and for my case study i need help regarding copybook creation in cobol-db2.
please try to give me an example program using db2-cobol-copybook.
thanks.
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Fri Aug 12, 2005 1:55 pm
Reply with quote

This Query shd be raised in mainframe basic.

Copybook doesnt relate with DB2. Its jus a record layout created in COBOL blank PDS member...

What do u want exactly???
Back to top
View user's profile Send private message
atik

New User


Joined: 29 Jul 2005
Posts: 20

PostPosted: Fri Aug 12, 2005 2:21 pm
Reply with quote

Are you taking about DCLGEN?
Back to top
View user's profile Send private message
gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Wed Aug 17, 2005 5:06 pm
Reply with quote

durga_cts wrote:
hi everyone.
am in mainframe training in my company,
and for my case study i need help regarding copybook creation in cobol-db2.
please try to give me an example program using db2-cobol-copybook.
thanks.



copybook is a member of a pds which can be copied in the program. it will be expanded during the compilation time. it does not specifically relate to cobol statements alone. we can also copy embeded sql queries to the copybook.

gowtham
Back to top
View user's profile Send private message
Karthikt

New User


Joined: 15 Aug 2005
Posts: 51

PostPosted: Thu Aug 18, 2005 4:37 pm
Reply with quote

I feel that you are talking about generation of COBOL copybook for DB2 table layout. Go to appropriate option to ariive at DCLGEN and choose the option to select the DB2 table and PDS to where your copybook is to bec copied. Then you will have your copybook generated with 2 layouts. The first layout will have the DB2 lauout with DB2 fields definitions in that format.

The second one will be a COBOL layout equalent to DB2 which shall be used as host variables in the COBOL-DB2 program. Also you can note indicator variables also will be created for fields that does not have NOT NULL CONSTRAINT.
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