473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OS/2 (yes) backup to XP Excel

Hi all,

this might sound strange, but I'm desperately seeking for a solution for
this (personal) issue.

Ages ago, I built a DB2 database under OS/2, even with a VX-Rexx
graphical interface. I maintained the OS/2 PC for a long time but
meanwhile I'm considering a migration. :-)

I'm aware, that I can forget all the graphical interfacing that I did,
am just caring for the data. Also I do not intend to run a DB2 again for
maintaining my CD collection.

So I am looking for an easy way to get the tables into Excel under XP.

My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!

Thanks a lot for any hint.
Udo

P.S.: Since years I didn't program anything anymore or worked with SQL
or DB2, please do not consider that I'm an expert.
Mar 13 '06 #1
14 1641
Ian
Udo Kerwath wrote:
Hi all,

this might sound strange, but I'm desperately seeking for a solution for
this (personal) issue.

Ages ago, I built a DB2 database under OS/2, even with a VX-Rexx
graphical interface. I maintained the OS/2 PC for a long time but
meanwhile I'm considering a migration. :-)

I'm aware, that I can forget all the graphical interfacing that I did,
am just caring for the data. Also I do not intend to run a DB2 again for
maintaining my CD collection.

So I am looking for an easy way to get the tables into Excel under XP.


The EXPORT utility supports delimited files (a.k.a. CSV), which Excel
reads happily.

EXPORT TO TABLE.CSV of DEL SELECT * FROM TABLE

Mar 13 '06 #2
In article <dv**********@o nline.de>, no*********@onl ine.de says...

My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!


With which version of DB2 was the backup created?
Mar 13 '06 #3
>DB2 database under OS/2, even with a VX-Rexx graphical interface.

Oh, wow, i did that a decade ago? Sheesh! :)

B.

Mar 13 '06 #4
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!


With which version of DB2 was the backup created?


Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo
Mar 13 '06 #5
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!


With which version of DB2 was the backup created?


Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo


Do you still have a system running with OS/2 and DB2 V6?
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.
Mar 13 '06 #6
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...

My dream is a tool that can read the DB2 backup, and copies the tables
in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
are needed, I will try!

With which version of DB2 was the backup created? Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo


Do you still have a system running with OS/2 and DB2 V6?


Yes - I still use the database.
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.


How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely
remember that there was an app to see the different tables and so on.
But opening the Folder "DB2 for OS/2" I see a lot of things, but best
looks like a command line interface....:
o HTML Search Server
o Command Center, Command Line Processor
o ODBC Installer & Administrator
o Client Configuration Assistant
o Windows Support
o Problem Determination Tools
o First steps

Sorry to bother you with those stupid beginner questions (incredible
what you can forget within only 10 years...).

Udo
Mar 13 '06 #7
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...

> My dream is a tool that can read the DB2 backup, and copies the tables
> in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
> are needed, I will try!
>
With which version of DB2 was the backup created?
Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo


Do you still have a system running with OS/2 and DB2 V6?


Yes - I still use the database.
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.


How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely
remember that there was an app to see the different tables and so on.
But opening the Folder "DB2 for OS/2" I see a lot of things, but best
looks like a command line interface....:
o HTML Search Server
o Command Center, Command Line Processor
o ODBC Installer & Administrator
o Client Configuration Assistant
o Windows Support
o Problem Determination Tools
o First steps

Sorry to bother you with those stupid beginner questions (incredible
what you can forget within only 10 years...).


If I do remember right the Command Center was a resource hog with V6,
but I could be totally wrong with that. I still prefer the command line,
although I'm on Windows, that's because of the unix background I guess
:)

From the command line you can use the 'db2 list tables for all' to get
all tables (after connecting to the database). This command can also be
used to list all tables belonging to one schema. If you need to know
which schema's are in your db you can run the command
db2 "select distinct tabschema from syscat.tables where type = 'T'".

For each table you need to run the command
db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".

You can create the export statements with the (wrapped) command
db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim
(tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' ||
rtrim(tabname) from syscat.tables where type = 'T' and tabschema =
'<tabschema>'"

Hope this helps.

Mar 13 '06 #8
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
> In article <dv**********@o nline.de>, no*********@onl ine.de says...
>
>> My dream is a tool that can read the DB2 backup, and copies the tables
>> in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
>> are needed, I will try!
>>
> With which version of DB2 was the backup created?
Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo

Do you still have a system running with OS/2 and DB2 V6?

Yes - I still use the database.
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.

How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely
remember that there was an app to see the different tables and so on.
But opening the Folder "DB2 for OS/2" I see a lot of things, but best
looks like a command line interface....:
o HTML Search Server
o Command Center, Command Line Processor
o ODBC Installer & Administrator
o Client Configuration Assistant
o Windows Support
o Problem Determination Tools
o First steps

Sorry to bother you with those stupid beginner questions (incredible
what you can forget within only 10 years...).


If I do remember right the Command Center was a resource hog with V6,
but I could be totally wrong with that. I still prefer the command line,
although I'm on Windows, that's because of the unix background I guess
:)

From the command line you can use the 'db2 list tables for all' to get
all tables (after connecting to the database). This command can also be
used to list all tables belonging to one schema. If you need to know
which schema's are in your db you can run the command
db2 "select distinct tabschema from syscat.tables where type = 'T'".

For each table you need to run the command
db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".

You can create the export statements with the (wrapped) command
db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim
(tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' ||
rtrim(tabname) from syscat.tables where type = 'T' and tabschema =
'<tabschema>'"

Hope this helps.


Gert,

this looking great - I will try it asap!

Thanks so much.

Udo
Mar 13 '06 #9
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
In article <dv**********@o nline.de>, no*********@onl ine.de says...
Gert van der Kooij wrote:
> In article <dv**********@o nline.de>, no*********@onl ine.de says...
>
>> My dream is a tool that can read the DB2 backup, and copies the tables
>> in Excel spreadsheets... . okay, dreaming... whatever intermediate steps
>> are needed, I will try!
>>
> With which version of DB2 was the backup created?
Gert,

it was generated with DB2 V6 (at least that's what the "Event Monitor"
and "Command Center" are saying.

Cheers,
Udo

Do you still have a system running with OS/2 and DB2 V6?

Yes - I still use the database.
If so you can restore the backup and use the export command as have been
sugggested by others. If you don't have a V6 system you need at least V7
system to restore (and automatically migrate) the backup and export the
tables.

How can I do the export (ohh gosh, 10 years ago I knew...)? I vaguely
remember that there was an app to see the different tables and so on.
But opening the Folder "DB2 for OS/2" I see a lot of things, but best
looks like a command line interface....:
o HTML Search Server
o Command Center, Command Line Processor
o ODBC Installer & Administrator
o Client Configuration Assistant
o Windows Support
o Problem Determination Tools
o First steps

Sorry to bother you with those stupid beginner questions (incredible
what you can forget within only 10 years...).


If I do remember right the Command Center was a resource hog with V6,
but I could be totally wrong with that. I still prefer the command line,
although I'm on Windows, that's because of the unix background I guess
:)

From the command line you can use the 'db2 list tables for all' to get
all tables (after connecting to the database). This command can also be
used to list all tables belonging to one schema. If you need to know
which schema's are in your db you can run the command
db2 "select distinct tabschema from syscat.tables where type = 'T'".

For each table you need to run the command
db2 "xport to <file.csv> of del select * from <tabschema>.<ta bname>".

You can create the export statements with the (wrapped) command
db2 "select 'db2 export to ' || rtrim(tabschema ) || '_' || rtrim
(tabname) || '.csv of del select * from ' || rtrim(tabschema ) || '.' ||
rtrim(tabname) from syscat.tables where type = 'T' and tabschema =
'<tabschema>'"

Hope this helps.


Gert,

it works - I'm so happy!

Just a last small nice-to-know question: can I somehow read the headers
of the columns, like first column is "Artist", 2nd is "title" and so on....?

You really helped me so much - thanks a lot!!!

Udo
Mar 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7561
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database jobs: -- Database Backup BACKUP DATABASE TO WITH NOINIT ,
2
13374
by: nt | last post by:
I am having a problem with a regular backup of an SQL Server (MSDE 2000) database to a local drive. I initiate the backup once a week, by issuing the required T-SQL, via ADO. In this case, the T-SQL is: BACKUP DATABASE GPRS_Dimensioning_Archive TO local_backup WITH RETAINDAYS=21, NAME='GDA_20040706' Note that "local_backup" is a file...
6
3331
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API (no tablespace backups) the backup images is stored as a single backup object. Later I will be able to restore the complete database from this...
1
4725
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1", "/raid/backup/ebuero2/part10", "/raid/backup/ebuero2/part11", "/raid/backup/ebuero2/part12", "/raid/backup/ebuero2/part13", "/raid/backup/ebuero2/part14",...
4
4716
by: uthuras | last post by:
Hi all, I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be 1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to backup the entire database (online backup). The backup is directed to disk and not tape. Recently, we did data archival by purging some of the records. Now, the size of the database is 500GB...
3
1935
by: Michael | last post by:
Happy new year. I am looking for code that will go through all tables in MYSQL db and transfer records into text or excel files. Thanks
1
5165
by: Joachim Klassen | last post by:
Hi all, a couple of questions regarding LOAD COPY YES: when does a LOAD COPY YES start to write its backup image ? After LOAD Phase or after BUILD or DELETE phase? What gets backed up - data pages only or index pages as well? When I use TSM as backup target, will DB2 send an estimate of the backup size to TSM before backup starts? TIA...
1
1544
by: aj | last post by:
DB2 LUW 8.2 FP14 Red Hat AS 2.1 I went to restore a backup of my production DB on my test/developmental server. The backup on the prod system was taken /before/ alt_obj() was used there to do some schema evolution. The restore on the test box barfed on the roll forward because alt_obj() uses COPY YES on its LOAD, and the test box did not...
6
2889
by: sara440 | last post by:
i want to take backup of one table(tables's data) of database, on hard disk or cd.i have a button "backup" on my form that should ask for backup when clicked.(it should allow to take backup on Cd). i m form from which attendance of students is entered.so when session ends ( like for example session of class(MBA) is 2005 -2007), i want to...
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7926
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7439
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.