Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

help about copybook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: help about copybook
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    Post subject: Re: help about copybook
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    Post subject:
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    Post subject: Re: help about copybook
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Geneartion of COBOL copybook structre... murugan_mf COBOL Programming 3 Fri May 20, 2016 12:48 pm
No new posts View Copybook having COPY statement i... nkumar Compuware & Other Tools 6 Mon May 16, 2016 7:28 pm
No new posts JCL Utility in accordance to the copy... meetsupriyo JCL & VSAM 3 Tue Dec 08, 2015 8:46 pm
No new posts Convert a COBOL copybook spoorni All Other Mainframe Topics 0 Fri Aug 28, 2015 7:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us