View previous topic :: View next topic
|
Author |
Message |
durga_cts
New User
Joined: 12 Aug 2005 Posts: 1 Location: chennai
|
|
|
|
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 |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
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 |
|
|
atik
New User
Joined: 29 Jul 2005 Posts: 20
|
|
|
|
Are you taking about DCLGEN? |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
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 |
|
|
Karthikt
New User
Joined: 15 Aug 2005 Posts: 51
|
|
|
|
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 |
|
|
|