Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Any way to get a Read count in Data Migrator?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Any way to get a Read count in Data Migrator?
 Login/Join
 
Virtuoso
posted
I have a very simple routine that reads records from DB2 with the following format in the SQL Statement box:

select * from alert

I select records from one database this way, write them all to another. When I run this routine the ETLLog shows the number of records written to my destination table, but it does not show the number of records read.

Yes, in theory every record should write and it should be a perfectly even match, or an error thrown if not. But I have been given a requirement to show both the number of records read and the number of records written for accounting purposes, and I'm trying to figure out a way to get the records-read count to appear.

I can put '-TYPE &RECORDS' after the select command, and it prints the number of records read. But, I can't close the box and save the routine. It throws an error.

Any suggestions? Looking at SQL options but don't see one that fits the bill.

This message has been edited. Last edited by: FP Mod Chuck,



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Virtuoso
posted Hide Post
John

I saw Clif replied to your post on the iWay forum. I am going to close this one.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
The problem is that Clif did not provide me with a suitable solution, and nobody reads the I-Way forums. That's why I post to WebFOCUS as well. If I don't do that I never get an answer for I-Way problems.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Virtuoso
posted Hide Post
John

What I read appears to be the way you are doing the load. A load from memory which is the recommended way for performance reasons does not provide a record count. You could run a post procedure that creates a report against the table loaded to get the number of records in the table.


TABLE FILE whatever
SUM CNT.FIELDNAME AS 'Record Count'
ON TABLE PCHOLD FORMAT HTML
END


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Expert
posted Hide Post
Filedef a file, -WRITE &RECORDS and/or &LINES after your Select, then, -READ when you want to retrieve the records:
  
-SET &FILE_NAME = 'rec_cnt_' || &YYMD || '.txt';
APP FILEDEF REC_CNT DISK C:\ibi\apps\baseapp\&FILE_NAME 
-RUN
TABLE FILE IBISAMP/CAR
PRINT *
  ON TABLE HOLD
END
-RUN
-WRITE REC_CNT &RECORDS &LINES
-RUN


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Any way to get a Read count in Data Migrator?

Copyright © 1996-2020 Information Builders