We have a VERY old 400, on the order of 10-15 years old, and I need to migrate the data out of it so it can be retired. I have ODBC connectivity to it through a program called QTODBC that is reporting that the host that I'm connecting to is version 03.01.0000. I'm trying to access system tables so that I can get table structure data and I've tried various commands that all seem to be written for later versions of DB2.

What were the system tables back way back then? And how would I pull up schema names, assuming they had them with this old of a version?

有帮助吗?

解决方案

Your best bet for V3R1 will be to use the DSPFFD FILE(...) OUTPUT(*OUTPUT) OUTFILE(LIB/FILE) command from a terminal session to create a file of field definitions.

There's a high chance with a system that old that the files may not even be externally described. This means that the file layout is hardcoded in each program that access the file. You can recognize this situation if you only find a few fields named F00001, K00001, etc.

其他提示

You can retrieve the table structure quering QSYS2/SYSCOLUMNS tables.

Browse the QSYS2 library for tables and views about indexes and others.

describe output select * from creator_schema.tablename

This worked for me.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top