Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cobol (TXT DB) to MySQL or PostGREE

Status
Not open for further replies.

Trxplz0

Programmer
May 2, 2014
1
Hi,

Is there a easly way to convert a Cobol TXT DB to Mysql or Postgree?

The TXT sctructure files have this:

fd AFNSPP
label record is standard.

01 D455-REG-TUP.
05 COD-TUP PIC X(17).
05 F1 PIC X(03).
05 COD-STORE-TUP PIC 9(02).
05 F2 PIC X(03).
05 COD-CLIENT-TUP PIC 9(05) VALUE ZEROS.
05 F3 PIC X(03).
05 VALUE-TUP PIC 9(12)V99 VALUE ZEROS.
05 F4 PIC X(03).
05 DATA-TUP PIC 9(08) VALUE ZEROS.
05 F5 PIC X(03).
05 BANK-TUP PIC 9(03) VALUE ZEROS.
05 F6 PIC X(03).

Thanks i hope you guys can help me!
 
Not sure what you have in you Fn (presumed filler) variables, but if this file looks somewhat like a CSV file then, for MySQL, LOAD DATA INFILE should do the trick.

Tom Morrison
Hill Country Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top