473,388 Members | 1,399 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Rows in IXF file

Hi!

I have a file TABLE1.IXF and want to know how many rows are in there.
How to do it?

Thanks and best regards,
Kovi

--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Sep 24 '08 #1
2 5031
Gregor Kovač wrote:
I have a file TABLE1.IXF and want to know how many rows are in there.
How to do it?
Simplest way is to import into temporary table and select count(*) from
that table :-)

If you review IXF format descibed in online documentation available at:
http://publib.boulder.ibm.com/infoce...v9r5/index.jsp

for example this topic:
http://publib.boulder.ibm.com/infoce.../r0004668.html

and read IXF file counting 'D' records with IXFDRID='001' you *may* get
a good approximation on number of rows in the IXF file.

Keep in mind that LOG locator columns, XML columns have their D records
as well (there is one or more 'D' records per row).
Jan M. Nelken
Sep 24 '08 #2
Thanks for the info.

So, if I have a table with 100 rows and export them and then count D
records with IXFDRID='001', the number I get is never less than 100, right?
Less because you say there can be XMl columns, ....

Best regards,
Kovi

Jan M. Nelken pravi:
Gregor Kovač wrote:
>I have a file TABLE1.IXF and want to know how many rows are in there.
How to do it?

Simplest way is to import into temporary table and select count(*) from
that table :-)

If you review IXF format descibed in online documentation available at:
http://publib.boulder.ibm.com/infoce...v9r5/index.jsp

for example this topic:
http://publib.boulder.ibm.com/infoce.../r0004668.html
and read IXF file counting 'D' records with IXFDRID='001' you *may* get
a good approximation on number of rows in the IXF file.

Keep in mind that LOG locator columns, XML columns have their D records
as well (there is one or more 'D' records per row).
Jan M. Nelken
--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Sep 29 '08 #3

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

Similar topics

3
by: Elaksomfan | last post by:
Hi, I am having trouble importing data from an excel spreadsheet into MS SQL Server 2000 using DTS Wizard. The DTS import process is successfull, no errors, but only 50 rows of approx. 1500 rows...
6
by: Fan Ruo Xin | last post by:
I try to copy a table from production system (DB2 UDB EEE V7.2 + fixpak5) to the testing system (DB2 UDB V8.1 + fixpak4a). I moved the data from productions system by using the following steps:...
13
by: Dixie | last post by:
How do I, in VBA from an access form module, add 5 rows to the top of a spreadsheet called MySpreadsheet.xls. The worksheet is called MyWorksheet and there is already data in the first 5 rows. I...
6
by: dddddddd2444444 | last post by:
Hi,please help... It works fine when I define a 2-D array like char code. But it won't work when I try to define the array dynamically using a function. It just crashes. Does anyone know why?...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
6
by: kilter | last post by:
Anyone know of a routine that will return the number of rows and columns in a matrix?
1
by: Alan_C | last post by:
Hi, Using Perl I converted a few simple, single header, csv to xml. But I have a csv file that has: Header,row,#1 data_row,under,header_1 nuther_data_row,under,header_1...
12
by: weeodett | last post by:
Is there a way to automate the deletion of the oldest rows in a transaction log file when the file reaches a certain number of rows? Currently, we are simply deleting the oldest rows manually every...
17
by: SimonPalmer | last post by:
anyone know how I would find out how many rows are in a csv file? I can't find a method which does this on csv.reader. Thanks in advance
3
by: nigelesquire | last post by:
Please help! I'm trying to clone and delete multiple rows with JavaScript. I need two delete buttons that work...! I only have one for now, but it's not working properly, the output count is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...

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.