IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  custom query on bizdoc

    Posted Wed August 07, 2013 12:20 AM

    Hi,

    I’m trying to pull records from bizdoc table using CUSTOM QUERY using the date range. But I could pull only records with hours >= 1 and <= 12

    Example below query its working
    select * from bizdoc a where a.doctypeid=‘EDIINT------------------’
    and a.doctimestamp between ‘24-APR-13 01.00.01’ and ‘25-APR-13 01.00.01’;

    But not the below; what needs to be done. Any help on these please.

    select * from bizdoc a where a.doctypeid=‘EDIINT------------------’
    and a.doctimestamp between “24-APR-13 00.00.01” and “25-APR-13 00.00.01”;

    Regards,
    Sam


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: custom query on bizdoc

    Posted Wed August 07, 2013 01:08 PM

    I would suggest,instead use the tn:query folder services for any transaction query for custom reports.

    use these main services below and review the TN BIS guide for more inputs information to these services:

    createDocumentQuery
    documentQuery

    HTH,
    RMG


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: custom query on bizdoc

    Posted Wed August 07, 2013 07:07 PM

    Hi RMG,

    Yes we can pull the records using

    createDocumentQuery
    documentQuery

    But we can’t give the exact DayTime duration between which the search needs to be processed. We have only these timeInterval options:

    TODAY
    YESTERDAY
    LAST_7_DAYS
    THIS_WEEK
    LAST_WEEK
    THIS_MONTH
    LAST_MONTH
    YTD

    When I used YTD, it pulled all the records. Any idea how to use the DateTime range?

    Regards,
    Sam


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: custom query on bizdoc

    Posted Wed August 07, 2013 09:19 PM

    Yes you are right there is not option for the Custom inputs like in TA.

    But you might want to take some DBA help if you still want to run the custom db query against TN internal tables as some of the timestamps not works as expected.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #B2B-Integration


  • 5.  RE: custom query on bizdoc

    Posted Sun August 18, 2013 11:13 AM

    Hi RMG,

    we can use like below; it worked for me.

    select * from bizdoc a where a.doctypeid=‘EDIINT------------------’
    and to_char(a.doctimestamp,‘dd-MM-yy HH-MI-SS AM’) between ‘23-04-13 04-51-46 AM’ and ‘25-04-13 04-51-46 AM’

    Regards,
    Sam


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: custom query on bizdoc

    Posted Sun August 18, 2013 11:35 AM

    Other way is using dynamic:

    Query: select * from bizdoc ${where}
    Input: where doctypeid=‘EDIINT------------------’ and to_char(doctimestamp,‘dd-MM-yy HH-MI-SS AM’) between ‘23-04-13 04-51-46 AM’ and ‘25-04-13 04-51-46 AM’


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration


  • 7.  RE: custom query on bizdoc

    Posted Tue August 20, 2013 02:56 PM

    As long as it works for you and thanks for the update:


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration