Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Create Cobol copybook from a DB2 table unload.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ywheeler

New User


Joined: 10 Nov 2006
Posts: 19
Location: New York

PostPosted: Thu Jun 17, 2010 9:34 pm    Post subject: Create Cobol copybook from a DB2 table unload.
Reply with quote

My question, is it possible to create a file layout from an unload? When I run an unload of a table using a DB2 unload utility, the resultant files embed a filler byte for each 'nullable' field (so that a subsequent Db2 load utility will know when a field should be valued as null in the table being loaded). Is there something which can be added to the unload so when the data is unloaded it would also create a file layout?
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jun 17, 2010 9:40 pm    Post subject:
Reply with quote

DCLGEN. DCLGEN under DB2I?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Thu Jun 17, 2010 9:42 pm    Post subject:
Reply with quote

What is wrong with the INCLUDE member
you use when defining the TABLE in a program,
that is generated as part of the DCLGEN process?

the unload will not generate a file layout of the table
only a file layout of the unload file.

if you want to process the file layout of the unload file with a REXX or SAS script,
that can be done.
but since it already exists,
why go to the extra trouble?
Back to top
View user's profile Send private message
ywheeler

New User


Joined: 10 Nov 2006
Posts: 19
Location: New York

PostPosted: Thu Jun 17, 2010 10:02 pm    Post subject:
Reply with quote

In this particular task the unload files will not be used in a Cobol program. I'm looking for a process that can convert SYSPUNCH cards of the unload utility into file layouts ( preferrably in the format of a cobol copybook, since the recipient is more comfortable mapping the file using such copybooks).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Jun 18, 2010 4:16 pm    Post subject:
Reply with quote

I do not think if there are any vendor product to do this, however, you may try write a quick REXX for this...
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 How to display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us