If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Loading COMP-3 data into DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-05, 22:21
Dicken Dicken is offline
Registered User
 
Join Date: Mar 2005
Posts: 1
Loading COMP-3 data into DB2

I'm more of a PC guy so bear with me.

I need to load a cobol flatfile into DB2 using DB2 LOAD utility.

05 FM-BALN-I PIC 9(13)V99 COMP-3.
05 FM-BRCH-I PIC 9(03) COMP-3.
05 FM-DIVS-I PIC 9(03) COMP-3.
05 FM-LCHG-I PIC 9(07) COMP-3.


How do I implement it in this format?

LOAD DATA REPLACE LOG YES INDDN SYSREC00 INTO TABLE
GAGFSEA.SETR_FMS_GL_LIST
(
GL_ACCOUNT POSITION( 1 )
CHAR( 10),
RESP_CTR POSITION( 14 )
CHAR( 4),
DESCRIPTION POSITION( 24 )
CHAR( 30),
CONTROL_FLG POSITION( 54 )





THANKS,
Dicken
Reply With Quote
  #2 (permalink)  
Old 03-08-05, 00:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I think you are loading data into DB2 for z/OS or OS/390, but not 100% sure. But if so, a comp-3 data element would be defined as a DB2 DECIMAL column in a DB2 table.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On