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

Create Cobol copybook from a DB2 table unload.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Thu Jun 17, 2010 9:40 pm
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: 6966
Location: porcelain throne

PostPosted: Thu Jun 17, 2010 9:42 pm
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
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

Superior Member


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

PostPosted: Fri Jun 18, 2010 4:16 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top