MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stats for LOAD utility

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Tue Mar 04, 2008 5:51 am    Post subject: stats for LOAD utility Reply with quote

I am loading table using DB2 load utility (DSNUTILB). Can I capture the statistics for load i.e. start time/end time/num of recs loaded/fail/discarded etc in a file? As of now I am getting all these stats in Spool. I want these in a file in formatted manner, so that i can use this file to load these stats into another statistic table.

Please help me in this.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Tue Mar 04, 2008 7:52 am    Post subject: Reply with quote

Direct the output to a dataset (instead of sysout=) and write a program to read that and save it into a statistic table.
Back to top
View user's profile Send private message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Tue Mar 04, 2008 11:37 pm    Post subject: Reply with quote

Ya but parsing that file would be a problem. The stats wont come in the same line and column every time. We need to schedule jobs for getting stats and putting into the tables. Thats why I want have some formatted file kinda Runstat in COBOL DB2 programs.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Mar 05, 2008 4:41 am    Post subject: Reply with quote

run your print file through SORT and include the lines with the relevant message ids in your SORTOUT the process that file - you couold possibly get ICETOOL to do the formatting for you.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Mon Mar 10, 2008 8:02 am    Post subject: Reply with quote

I did this years ago using UNSTRING in COBOL. It's not too bad. You need to be aware of the different messages that DB2 writes under different circumstances. For example, the load writes different messages for partitioned and non-partitioned tablespaces.
Back to top
View user's profile Send private message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Tue Mar 11, 2008 3:26 am    Post subject: Reply with quote

Thank u every body for ur inputs Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group