dbTalk Databases Forums  

Is there an API to read the BSDS ?

ibm.software.db2.mvs ibm.software.db2.mvs


Discuss Is there an API to read the BSDS ? in the ibm.software.db2.mvs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rossb
 
Posts: n/a

Default Is there an API to read the BSDS ? - 10-14-2009 , 02:24 AM






In IMS there is an API to read RECON datasets and retrieve log information in a stuctured form.
Is there something similar for DB2, or am I left to 'scrape' the output from DSNJU004?

Reply With Quote
  #2  
Old   
momi.sabag@gmail.com
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 10-14-2009 , 03:02 AM






Hi

you can read log records by using the log capture exit routine or through IFI, but the only way to get BSDS data is by reading the output of DSNJU004 or read the bsds file directly

Reply With Quote
  #3  
Old   
rossb
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 10-14-2009 , 11:32 PM



Thank you. Is there a published mapping of the BSDS (DSECTs) ? .... Ross

Reply With Quote
  #4  
Old   
momi.sabag@gmail.com
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 10-15-2009 , 05:14 AM



Hi
I don't think there is a published DSECT, I also could not find anything in sdsnmacs
what do you need to get from the bsds? maybe there is an easier way to do it

Reply With Quote
  #5  
Old   
rossb
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 10-16-2009 , 02:23 AM



Thank you, I couldn't find anything in SDSNMACS either. All I'm trying to do is emulate what we do for IMS which can be summarised as "given start and/or stop time and system name, return me a list of logs". I have decided to post-process DSNJU004 for now, and maybe suggest to the lab some time in the future that they catch up with IMS :-)

Reply With Quote
  #6  
Old   
momi.sabag@gmail.com
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 10-17-2009 , 06:34 AM



Hmm...

actually, this can be achived much easier...
there is a zparm that allows you to tell db2 to put the timestamp in the name of the archive logs,
this way, if you want to know which archive logs belong to a certain time frame, you can learn that by the archive log filename
http://publib.boulder.ibm.com/infoce...pf_tstamp.htm?

Reply With Quote
  #7  
Old   
StevePratt
 
Posts: n/a

Default Re: Is there an API to read the BSDS ? - 11-06-2009 , 08:30 AM



in the "for whatever it is worth" category, I too have developed a
couple of routines to "parse" the output of DSNJU004 (Print Log
Map).

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.