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
 

 

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: 6967
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am


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