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.  DateTime Stamp

    Posted Tue November 16, 2004 05:08 PM

    hi ,
    I need to insert Null Value in the Variable (DateTime Stamp)
    when i am sending the value 0000/00/00 00:00:00 (yyyy/MM/dd hh:mm:ss)
    its throwing me that it cannot insert the year 2 in database.
    I tried to create the null date using dateTimeFormat Service in webMethods 6.1.
    i/o parameters :-
    instring : 00000000(mmddyyyy)
    current pattern : mmddyyyy
    newpattern : yyyy/mm/dd hh:mm:ss

    i am getting Output : 0002/00/31 12:00:00
    but my required output is : 0000/00/00 00:00:00

    Does any one share ther experiences …
    how to insert null Date in variable(Type DateTime Format )

    Thanks,


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: DateTime Stamp

    Posted Tue November 16, 2004 06:28 PM

    Easiest thing to me is to have the DBA set the table default value to either null or the specified pattern that you mention in your post.

    You don’t mention your db type that you are using (SQL2000, oracle, etc.)

    If they cannot do it, perhaps it is a db limitation?

    Ray


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: DateTime Stamp

    Posted Wed November 17, 2004 02:42 PM

    Or at least make it allow Null and then just don’t insert it.
    That being said most date formats would not accept 00 as either a month or day.

    select to_date(‘0000/00/00’,‘YYYY/MM/DD’) from dual
    *
    ERROR at line 1:
    ORA-01843: not a valid month


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services