Support of TimeStamp in function datediff

Hello,
I run the same Script in Diadem Version 2012 and 2014. The Script include the function DateDiff() of 2 channels which are identified as a date-channel. In the Version 2012 the Script run without errors and in the Version 2014 the Script throw out a error because of overflow. In the Version 2014 it seems to be that the function DateDiff()  does not support the TimeStamp, because if you convert the date into a String it works.
Is it possibly that in the new Version 2014 of Diadem the function DateDiff()  does not support the format of TimeStamp?
For me it would be interesting because of the performance of huge data sets.
Thanks in advance,
Thomas
Solved!
Go to Solution.

Hello Brad,
sorry I have not express myself correctly. For sure the function DateDiff() only compare two variables and not the channel in all.
I have use the function in the VBS-Script and compare all rows of a channel particular, that means every single cell. I do not think that there is a chance of using the calculator, because the function is part of a bigger function which compare different cells in a channel.
(for both examples the channels date_time_stator and date_time_rotor are channels of a date)
Here a simple example of the script is not working in Diadem 2014:
Dim date_time_1, date_time_2, date_diff  
Set date_time_1 = Data.Root.ChannelGroups("RACF").Channels("date_time_stator")
Set date_time_2 = Data.Root.ChannelGroups("RACF").Channels("date_time_rotor")
date_diff = DateDiff("s",date_time_1(1),date_time_2(1))
Here a simple example of the script is working in Diadem 2014:
Dim date_time_1, date_time_2, date_diff
Dim date_time_1_new, date_time_2_new
Set date_time_1 = Data.Root.ChannelGroups("RACF").Channels("date_time_stator")
Set date_time_2 = Data.Root.ChannelGroups("RACF").Channels("date_time_rotor")
date_time_1_new = str(date_time_1(1),"#YYYY-MM-DD hh:nn:ss")
date_time_2_new = str(date_time_2(1),"#YYYY-MM-DD hh:nn:ss")
date_diff = DateDiff("s",date_time_1_new,date_time_2_new)
It shows if you change the date into a string it works, otherwise the Error: "overflow" occurs.
The curios thing the same VBS-Script is working in Diadem 2012 and is working in older scripts very well!
Do you have a idea why?
best regards,
Thomas

Similar Messages

  • Does Flash Paper support the PDF Bookmark functionality inside SWF?

       Does Flash Paper support the PDF Bookmark functionality inside SWF?

    I don't think you will be to happy with this, but I think it
    does not come with the Web Premium CS3 for the Mac:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16582#flashpaper

  • Support for some IS functions added

    Support for the following functions has been added in the SP1:
    ISERR
    ISERROR
    ISEVEN
    ISODD
    ISLOGICAL
    ISNONTEXT
    ISTEXT
    TYPE
    It looks like they did not get to the user guide list yet.
    Margaret

    The new functions were relatively late additions, therefore they could not be added to the User Guide. They are addressed in the Release Notes. The most current version of the Release Notes can be found attached to the top post in this thread:
    [Support for some IS functions added;

  • Java.sql.SQLException: ORA-04062: timestamp of function has been changed

    Hi,
    Environment:
    We host our java 1.5 , j2ee application on multi-clustered environment connecting 2 app servers to 1 node of oracle RAC cluster.
    We have batch jobs running daily in the morning, that does a new data upload to the production DB. (Load to a Tmp table, Drop the production table, rename Tmp table to production table and re-create indexes.)
    Recent Change:
    We recently migrated from Oracle 10.0 version to 10.1...
    Issue:
    With the recent change, we started facing the error, 'ORA-04062: timestamp of function has been changed' for the STORED PROCEDURES that we use in the application. And I am sure that this is because of the job that runs in the morning, as it re-creates the tables that are used by the stored-procedures. So the stored-procedures become invalid and requires recompile. And we did recompile as well, but still the same error. And then changed the mode from 'TIMESTAMP' to 'SIGNATURE', but still the same error(ORA-04062: TIMESTAMP (and not SIGNATURE) of function has been changed)...
    We are stuck here not knowing what to do. It would be helpful if you can assist me here with any idea on why this is happening? The only solution we found right now is to restart the tomcat on application servers. This resolves the issue to 100%. Would this mean there is a problem with my database connection in the application?
    Thank you,
    Pradeep.

    The only solution we found right now is to restart the tomcat on application servers. This sounds to me as though TomCat is caching information about procedures & functions & does not know they have changed.
    04062, 00000, "%s of %s has been changed"
    // *Cause:  Attempt to execute a stored procedure to serve
    //          an RPC stub which specifies a timestamp or signature that is
    //          different from the current timestamp/signature of the procedure.
    // *Action: Recompile the caller in order to pick up the new timestamp.

  • Why Segment shrink is not supported for tables with function-based indexes

    As we all know , Segment shrink is not supported for tables with function-based indexes.
    But i'm very confused .
    Why Segment shrink is not supported for tables with function-based indexes ?? what's its essential?

    Creating a function based index creates a hidden virtual column (you'll see it if you query user_tab_cols) and once you index a virtual column you can no longer shrink the table:orcl> create table t1(c1 number,c2 as (c1 * 2)) segment creation immediate;
    Table created.
    orcl> alter table t1 enable row movement;
    Table altered.
    orcl>
    orcl> alter table t1 shrink space;
    Table altered.
    orcl> create index i2 on t1(c2);
    Index created.
    orcl> alter table t1 shrink space;
    alter table t1 shrink space
    ERROR at line 1:
    ORA-10631: SHRINK clause should not be specified for this object
    orcl>so the issue is not with function based indexes per se, it is a level beneath that. Perhaps because the virtual column has no physical existance, when the row is moved there is no reason for Oracle to realize that an index needs updating? I haven't attempted to reverse engineer this, I would be interested to know if anyone else has.

  • Application Builder for labVIEW 7 Doesn't support any report generation function

    I'm Using LabVIEW 7.0 to build an application My Application is exporting data to an excel report. the vis were working great until i tried to creat an .EXE file. The application is working fine but when i try to generate the report nothing happens.
    So, I decided to test the report generation functions alone (New Report.vi, Append report text.vi and Dispose Report.vi). The Problem Still there, the .EXE file takes no action when i attend to generate a report. any suggetions please.

    Shady Yehia wrote:
    > I'm Using LabVIEW 7.0 to build an application My Application is
    > exporting data to an excel report. the vis were working great until i
    > tried to creat an .EXE file. The application is working fine but when
    > i try to generate the report nothing happens.
    >
    > So, I decided to test the report generation functions alone (New
    > Report.vi, Append report text.vi and Dispose Report.vi). The Problem
    > Still there, the .EXE file takes no action when i attend to generate a
    > report. any suggetions please.
    Another possible reason besides of possible path problems: Are you
    running that application on the same computer? If not you need not only
    to install the Runtime-Engine (automatic when you create an installer)
    but also the Report Active X support.
    To include that into the installer
    you go into the Installer Settings Tab, then press the Advanced button
    and make sure that you check the NI Reports Support checkbox before
    creating an application build.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Support of PL/SQL Functions in Data Modeler

    Hello,
    Sorry if this question has already been answered, I searched the forum but got 215 hits on data modeler + pl/sql functions.
    So my question is:
    Stored Procedures are already supported by the physical model (11g) of data modeler, but I could not find any method
    to create pl/sql functions via data modeler - neither in the documentation nor on the user interface. Is this
    currently not supported?

    Is this currently not supported?There will be support for functions and packages in next release.
    Philip

  • Support for DbXml specific functionality in XQuery vs. Shell or API

    Is / will there be any support for doing common commands in pure XQuery rather than just programmatically or through the shell? For example, in the shell I can create / list / delete indexes on a container, output query plans, etc. Are the same functions that are called through the shell available as XQuery functions? possibly in a dbxml function namespace?
    In a related question, but possibly deserving of a new thread if it doesn't already have one - I know XQuilla has the ability to call registered external functions from parsed XQuery, is there a way to tell DbXml to register a function with XQuilla's static context before using it? that would make it possible for me to add the functionality described above myself without disturbing your distributed code.

    Not so handy with C++ (my everday languages are PHP and Java), but if you say it can be done then I'll take a hack at it. If you happen to have examples of how other people have done it and you could point me at them it would be marvelous.
    To answer your second question: "bingo." It mostly means less interface work and brings it closer to what SQL can do in relational databases.
    The project allows the end user to define their own document structures (schema definitions more or less) and then create instances of these documents in a XML editing interface. For each document type, the end user is also able to define a set of named queries (abstracted function declarations) which lets us captures business rules without customizing our PHP code. Because the structure and queries that will be used against the documents are user defined its fairly impossible for me to automatically setup adequate indexes for the container of each set of documents. So I need an interface to allow the user to create / review / delete the indexes themselves.
    We've already created an interface that allows the user to execute arbitrary queries against a selected document. In the future we'd also like this same interface to do result set based content updates (through the XmlModify class) and whole document addition / replacement. So inclusion of index control makes sense as well. We can find ways to use the APIs, it just seems like this could benefit more than just our project.
    Placing the functionality from the shell into xquery extension functions seems analogous to having the UPDATE, DELETE and CREATE syntaxes of SQL.

  • Firefox v33 not supported for firebreath dll function?

    ''locking a a duplicate of - https://support.mozilla.org/en-US/questions/1031785''
    Hi,
    i have call a firebreath default echo function in my firefox extension using firefox v33 browser. its not working, it returns type error:echo is not a function. But the same function successfully called in firefox v28. So whats the actual problem? why firebreath dll function not supported in firefox v33?
    note In echo function, i have create a messagebox to display while calling in that function. it shows in v28 but in v33 exception throws like type error:echo is not a function.
    Regards
    Bala
    ''put a space after the periods as it was creating links.''
    ----

    Does Firefox find that element if you run this code in the Web Console (Firefox/Tools > Web Developer)?
    <pre><nowiki>ngPluginObj = document.getElementById('myfirebreath');</nowiki></pre>
    Do you see the add-on enabled in "Firefox/Tools > Add-ons"

  • Does Mathscript support Matlab's Slice function?

    Hello,
    I am trying to decide whether to take on a project using Matlab or Labview.  The project will require plotting of volumetric data, both as slices and as 3D volumes.  I currently do not have LabVIEW 8.20 installed on any of our machines, so I am not able to test these things.
    I have not seen Matlab's Slice function in the list of Mathscript functions.  Is it not supported my Mathscript?
    Also, I see that Surf is a supported function; does Mathscript also support the alpha channel control that is present in Matlab for Surf plots?
    Thanks,
    Gary

    Hello Gary,
    Unfortunately, the slice function and the alpha channel are not currently supported by LabVIEW MathScript.  However, the LabVIEW 3D graph control (which is used by the surf command) has some transparency options.  They can't be set from LabVIEW MathScript, but I can provide some more details about how to use them if you want.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Required model resume to support 2+,sap-mm(functional)

    dear experts of sap-mm functional,
    can any body send one model resume to support at least one end to end implementation & one support please.
    please send it to  [email protected]
    thank u very much in advance.
    bye bye

    hi babu,
    SAP MM job is not easy like doing coding in java and other programming language.. if u are really working in SAP u should not ask this type of question in sdn forum...In case if you are not working and asking these type of question which will affect the grade of real SAP MM gurus who are available in this forum....
    Dont ask these type of question

  • Timestamp Conversion Function Module

    Hi all,
    >>We are bringing time stamp value (like 20072404161312) from CRM ,we need to convert into date & time. I need function module which one does this...
    >>We are are storing the time duration in min format (its key figure). I need to populate in reports as HR:MN:SS , How we can do this? Is there any function module is available for this?
    Thanks in Advance

    Hello Arun,
    The timestamp is in the format <date><time>. In your example (20072404161312), the date is 20072404 and time is 161312. You can transfer the timestamp into a string and then split the data. You can use the following ABAP code to separate the date from the time:
    * w_ts is your timestamp, w_s is the temporary string
    *w_date and w_time will be your final date and time.
    data: w_ts type timestamp.
    data: w_s type string.
    data: w_date type sy-datum,
          w_time type sy-uzeit.
    w_ts = '20072404161312'.
    * Here is the code you need:
    w_s = w_ts.
    w_date = w_s(8).
    w_time = w_s+8(6).
    Hope this helps.
    Hope this helps.

  • Gateway for Sybase or MS SQL - support for Timestamp

    Hi All,
    Is there any way to get Timestamp data out of Sybase or MS SQL Server?
    I thought this would be pretty straightforward, but after a short investigation I'm no longer that optimistic...
    The "Database Gateway for Sybase User's Guide" says in Appendix A, that the following conversions are performed by the gateway:
    (Sybase - Oracle)
    DATE - DATE
    DATETIME - DATE
    SMALLDATETIME - DATE
    TIMESTAMP - RAW
    TIME - CHAR(15)
    It says the same for MS SQL Server.
    What I need is a conversion from Sybase DATETIME into Oracle TIMESTAMP, but I'm guessing there is a limitation of the Gateway
    and it is not able to use the millisecond data in any way... Am I right?
    Or maybe there is some magic setting in the .ini file for this? Things like HS_NLS_TIMESTAMP_FORMAT seem to be unsupported by Sybase gateway.
    I'm using 11.2.0.1 on Linux.
    Thanks for any hints.

    Hi,
    As you have seen in the documentation the Sybase and SQL*Server datatime columns are translated as Oracle DATE datatypes, so the milisecond data will be lost.
    the 11.2 DG4MSQL Users Guide actually says -
    SQL*Server Oracle Comment
    DATETIME DATE Fractional parts of a second are truncated
    although the Dg4Sybase Users Guide has the same conversion it does not have the comment.
    The only way round it would be use a different non-Oracle datatyp from which you could extract the millesecond part of the string.
    Regards,
    Mike

  • [XSLT] No support for XSD substitutionGroup functionality?

    I'm getting started with BPEL Process Manager and am currently exploring the functionalities of BPEL JDeveloper. One thing I'm trying to do is see if it has the same capabilities as TIBCO's messagebroker. Although it looked very promising I ran into some serious difficulties trying to implement an XML Schema we currently use. This schema is based on an older OAGIS schema.
    The thing that looks to be causing the issue is the substitutionGroup attribute that does not look to be supported. In my XSD I have several elements named USERAREA. In our schema we have substitutes for these areas that implement specific branches. In the TIBCO tool, the substitutionGroup would result in a choice of options for all the substitutions present.
    This is how it looks in the XSD:
    Declaration of the element within a sequence:
    <xsd:element ref = "USERAREA" minOccurs = "0"/>
    Declaration of the 'instance' with the substitutionGroup attribute:
    <xsd:element name = "PARTNER_USERAREA" substitutionGroup = "USERAREA">
    Is it simply true that substitutionGroup is not supported in the XSLT mapper or is there something I can do to get it to work?
    Message was edited by:
    Deddiekoel

    is there a chance to get me your schema and the rest I need to reprp that .. I will test it in the latest dev version - and file a bug if it is still there.. ([email protected])
    thx clemens

  • Will HANA supports in build planning function

    the documents says
    SAP HANA Database u2013 Development Guide
    u2013 How to use SQL and SQLScript for Data Modeling
    SAP HANA Appliance Software Page 17 of 83
    "The SAP HANA database also contains a component called the planning engine that allows financial
    planning applications to execute basic planning operations in the database layer. One such basic
    operation is to create a new version of a dataset _ as a copy of an existing one while applying_ filters
    and transformations. For example: Planning data for a new year is created as a copy of the data from
    the previous year."
    is it similar functionality of IP or give some pointer on this ?
    Regards,
    Manoj.

    Hello Manoj,
    Yes, this is refering to BW-IP functionality (which we also plan to use for other planning solution). See release notes here:
    http://help.sap.com/saphelp_nw73/helpdata/en/31/6d1b7db9444d4d999a00705ac3126a/frameset.htm
    and documentation here:
    http://help.sap.com/saphelp_nw73/helpdata/en/c4/7c04d0c28c488bbeae5dfde9f17b9a/frameset.htm
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

Maybe you are looking for

  • DB error while running reports in InfoView

    Hi, we are trying to create a report in infoview. however we are facing following error while trying to create new webintelligence document or running existing report: A database error occured. The database error text is: (CS) "DBDriver failed to loa

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this

  • OEM service discovery of linux agent from nt 4.0 platform

    get message: failed to get information for node 10.0.1.156 when trying to refresh services from oem console on NT 4.0 platform. OEM version 1.5 I am also getting and error in the $ORACLE_HOME/network/trace/dbsnmpc.trc file. Trace level is set to admi

  • Downpayment message

    Dear Friends, When i am posting down payment with reference to PO i am using a different vendor rather than the vendor in PO. It is giving only warning message. When I am posting down payment amount more than PO value then also system is giving warni

  • Problem to open a WorkBook

    Hello All, I cannot open a workbook after some modifications. The error message is the following <workbookname>.xls cannot be accessed. The file may be read-only or you may be trying to access a read-only location. Or the server the document is store