Adding time stamp to a file

Hello
Can you please advise me How to add timestamp to a file from Oracle Forms??
I am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production.
when i tried :
1.host('COPY :FIC_SOURCE :FICSOURCE||date');
A dos window appears asking for date input.When I enter the date details it does not append date to the file.
2.host ('COPY c:\temp\TEST1.CSV c:\temp\TEST1||date||.CSV');
nothing happens
Cheers,
Suresh

Hello,
there was a typing error.
host('COPY :FIC_SOURCE :FIC_SOURCE||date');

Similar Messages

  • Append two files with added time stamp

    Hi experts,'
    MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp.
    How to achive this as with append we do not get option of adding time stamp.
    Other thing is I want all the appended files should be there  in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they shoud be appended as a separate file in Receiver Folder.
    How to achive this??
    Regards,
    Nidhi

    Hi Nidhi,
    >>MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp
    Use BPM and pick the two files
    >>Other thing is I want all the appended files should be there in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they should be appended as a separate file in Receiver Folder.
    Use variable substitution and create the directory and filename dynamically...
    Use Dynamic configuration module in receiver adapter and do as specified in this blog:
    /people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
    Regards
    Suraj

  • Customizing Time Stamp In Receiver File Adapter

    Hi,
    I am working in a XI to file adapter scenario.
    The default time stamp in receiver file adapter is yyyyMMdd-HHmmss-SSS.
    I want to time stamp as "ABC_MM_DD_YYYY_HH_MM_SS".
    i searched SDN,but not getting an end to end approach.
    Like...I developed a UDF ,but when I map it to receiver root node..I am getting error.
    Please help.
    Just request for a step by step procedure.
    Also,ASMA is not v clear to me......
    Plzzzzzzzzzzzz help!!
    Regards.

    Hi sriparna,
    The timestamp used by the File Receiver Adapter is a default pattern, to achieve that you have to use a UDF in the middle of the MM and set the receiver file name with the ASMA, read this for further information:
    ´´´´ Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name
    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    It really helps,
    regards,
    Juan.

  • How can i add a time stamp to tdms file?

    I want the data and the time for the tdms file generated?
    how can i do that?
    should i cinvert .tdms to .lvm and use the data storage option or excel add on option for .lvm file created?
    cant i directly have the time stamp for tdms file generated?

    How are you acquiring the data in the first place?  That will matter in how we want to approach this.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Retaining date/time stamp when copying files from a backup network drive

    How do I retain the date/time stamp when copying files from a backup such as a external drive or a network drive?

    i don't trust MA at all. known to create a lot of problems.
    instead, see the green box in this user tip.

  • Adding time stamp while archiving the file in b2b

    Hi
    I want to add the time stamp when archiving the file when I am using file/ftp channel. can anybody tell me how can I do that. otherwise it is overwriting the exising file in archive directory.
    Thanks
    Sri

    Hi Sri,
    otherwise it is overwriting the exising file in archive directory.It might be happening because inbound files are not having unique name. You have two options -
    1. Make sure that inbound files have unique name (you may add timestamp in inbound filename format)
    2. Do not use the archive feature of Oracle B2B. Instead use a transport callout to write a copy of incoming document into desired directory with desired filename. To know more about callout offering of Oracle B2B, please refer -
    http://docs.oracle.com/cd/E28280_01/user.1111/e10229/callouts.htm#CHDEFBDG
    Regards,
    Anuj

  • Adding time stamp to table/array

    Hi,
    In my posted VI I am displaying some collected temperature data on a table.  What I am having trouble with is getting the time data to work properly on the table.  When I set the include time data to true, it reads out the time as 1904 etc. I'm not sure if it's possible for me to include a time stamp in my array because when I try to convert a time stamp to a double precision float, the output is still a cluster, and thus cannot be added to the array.  I've also tried to convert the array to a string and concatenate the time stamp on, but the signals input for the table does not accept strings, and because I would eventually like to export this table to a spreadsheet in a file, I don't really want to link the strings to the indicator directly.  I've tried to work with the instrument as well, but when I read time data from it it gives it back in the form of multiple numbers, such as 2008, 8, 28, 13, 30, 31.12 and I can't consolidate it to one number.  Needless to say, I'm a little stumped and am open to suggestions on how to fix this problem, whether its a quick fix or a change in the way I'm trying to record the data.
    Thanks in advance,
    Mike
    Message Edited by mbeenen on 08-28-2007 03:59 PM
    Attachments:
    Automated Thermal Testing Table.vi ‏75 KB

    Here are the sub VI's that I'm using.  The inner while loop is designed so that the loop will halt immediately when stopped, and not have to finish its current iteration, as the iteration period is intended to be rather long.  I may modify the program to have a programmable start/stop time later, but this is at least my temporary solution.  The purpose of the decimate array function is to seperate out the channel label from the actual data so they can be placed as headers in the Excel function.  The intent was likely not clear with the lack of the SubVI's.  Overall, the display table on the front panel is no longer necessary, it was just for me to see how the table was working in the early stages of development.
    The one issue I had with your suggestion is the fact that I the build waveform function only accepts a 1-D array for the waveform input, and with multiple and variable number of channels being used I'm not sure how I could easily manipulate the data I gather into multiple 1-d arrays.
    As always the help is appreciated,
    Mike
    Attachments:
    Write_Table_To_XL_Mod.vi ‏39 KB
    Conf Temp 2.vi ‏37 KB
    EZ Temperature.vi ‏20 KB

  • Transfer time stamp from text file into MS Access thru Labview

    Hello everyone,
    I am Cruz; Long time listener, First time caller.
    I am currently monotoring data being collected by an oven. The data is stored in a text file. I am using Labview to take the data from the textfile and place it in an MS access DB for manipulation. The first three columns of the text file are the time stamp of data. When i transfer the data into Access i cant get the first three columns to display as a time stamp. Can have some pointers on what how to get the first three columns to display correctly.
    Additional info:
    the text file is a 1D array that gets overitten with every new mesurement tanken. the transfer to Acces is to not loos any of the information and to better manipulate the data into forms and such.
    Running Labview 2010
    attached is code and text file.
    Any help is greatly appreciated.
    Attachments:
    Oven test other.vi ‏16 KB
    datalog032010003.txt ‏1 KB

    Your first mistake is reading the file as DBL. Your first three columns are obviously not numeric values. Did you ever look at the output array? Read it as strings. Second, you would need to combine those first three columns to create an actual time stamp before you write to the db. Unless of course you have one column for date, one column for time, and one column for AM/PM. I would not recomend that type of structure in the db.

  • Date and time stamp for the file

    Hi Experts,
    My Requirement is to create a csv file with the name testfile_date&timestamp.
    If i select add time stamp in the receiver file communication channel the file be as testfile_yyyymmdd_hhmmss_XXX.
    The XXX is message id which comes by default by selecting add timestamp option.
    but, i don't want the message id displayed in the file name.As i know from the blogs  we can reach this requirement as per Michels blog
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    I am not clear in the mapping. after writing the udf, to which filed i need to map with that udf.
    can you please tell me stel by step how how to do mapping and how to achieve the requirement. request you to send the code forthe  udf.
    Thanks
    Rahul

    Hi,
    you can wirte udf and map it to root element of the target message type. u just need to execute the udf.
    UDF:
    // UDF havs one input parameter - timestamp
    Code:
    DynamicConfiguration conf = (DynamicConfiguration) container .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String OldFileName  =  conf.get(key);
    String newFileName  =  "";
    if (OldFileName != null) {
        newFileName = "testfile_" +timestamp ;
        conf.put(key, newFileName);
    return  newFileName; 
    Mapping:
    Date (standard function) [Formmat yyyyMMdd_hhmmss] -> UDF -> MesageType.
    Thanks.
    Ritu

  • How do you vary the Date/Time stamp format in File Adapters

    In the receiver channel of the File Adapter where you specify the 'File Name Scheme', you do have the option of specifying a 'File Construction Mode' of 'Add Time Stamp'.  How can you specify a different Date/Time stamp format ( eg MM/DD/YY vs YYYYMMDD vs MMDDYY, etc. ) without changing the Date/Time stamp for the entire SAP system?  Also, can you control where the Date/Time stamp appears in the filename?

    Hi,
    There are many threads discussing the same issue. Go thro the following:
    Dynamic file name (Date) in Receiver File Adapter
    Receiver File Adapter - TimeStamp
    Bhavesh's reply in above thread:
    You can use Adapter Specific Identifiers and then change the file name in the mapping. Append the tiem stamp in the format that you want and so on.
    Just use this code in an UDF,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = conf.get(key);
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    String newfilename=SourceFileName+dateformat;
    // change to new file name
    conf.put(key, newfilename);
    return "";
    Regards,
    P.Venkat

  • Add time Stamp format in File Adapter

    Is it possible to change Add Time Stamp format ??
    If so please let me know the procedure to chnage it..
    It is scenario with no mapping so i cant go either Dynamic configuration or Variable substitotion.
    Thanks & Regards,
    Polas

    Hi,
    I think you need to assign it dynamically as you cannot change the format for Add TimeStamp
      See the below links:
    File Adapter: Dynamic file name
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
    Thanks,
    Tiny

  • Time Stamp format from file problem

    Hey there,
    I have a pretty peculiar problem. I'm working on two PCs right now, one is my private laptop running on Windows 8, and the other one the PC at my workplace, running on Windows XP, but on the same version of LabVIEW. I use this method to save the time and date to a tab delimited .txt file. Then later, with another VI, I read the date and time written to file to reconstruct the time stamp. I've noticed that dates written to file from my workplace differ from the dates written from my private PC: in Windows XP, there are "-" separating the day, month and year. In Windows 8, it's "/". There are other differences (see pictures). So naturally, when reading from file using my VI, I can only read on my private PC files (or at least dates) written on my private PC and vice versa, I can't read files written on my private PC on my workplace PC. Can anybody tell me why there's a difference in format, or how to write the date uniformly so I can read it on any PC, or how to read both formats?
    So this is the method I use for writing the time and date (the subVI only inserts a certain number of TAB characters).
    This is what it looks like on Windows 8
    This is what it looks like on Windows XP
    This is the VI (attached) I use to read the time stamps (the first row actually contains the time stamp in HH:MM: SS format for a whole bunch of measurements).
    Have a nice day.
    Solved!
    Go to Solution.
    Attachments:
    Extract Time Stamps.vi ‏22 KB

    I would suggest using the ISO-8601 UTC format.
    The only limitation is that the string value is in reference to GMT.
    The conversion of the string back to a timestamp will present the date/time on your front panel indicator as local time.
    https://lavag.org/topic/15034-timestamp-support-for-format-into-string-scan-variant-from-string-stri...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Plotting Time Stamp from Txt file in Column to another column

    I want to know how to plot 2 columns that i am reading from a text file.
    column 1 has a time stamp in HH:MMS,  and column 5 has data in which i want to plot the time verus the data.

    The Scan from String function will do most of those conversions in a single step.  Here are a couple of examples.  You will still need to read the array of strings in and process in a loop.
    Message Edited by DFGray on 03-19-2010 07:46 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to write time stamp to a file

    Hi,
    I'm using LabVIEW 8.2 and for my simulations purpose I've to store my data with time stamp (seconds having 6 digit precision ) in a text file.
    I'm using get time vi to get the time of the host computer on a  6 point precision (which I've attached also). My problem is I'm unable to convert this time stamp into string which can be written to text file directly. I would prefer to avoid the "unbundle cluster" which gives me individual elements (like seconds,date,time,year,day of the year, etc) and them convert each of them into a string.
    Looking to hear from any one of you soon,
    Regards
    Attachments:
    get time.vi ‏14 KB

    Hi Roiht
    You will never achieve 6 digits precision with the "get date/ time i seconds function" Perhaps 1 if you are lucky. But you can convert the time to string using the "format data/time string" function. You find it in the same palette as the other time functions.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Using counter to time stamp to text file

    Dear all,
    I am using counter to acquire singnal from quadrature linear encoder. I would like to time stamp the data acquisition to text file but I found that I can't choose to read time. Anyone know how to solve this problem?
    Attachment is my program.
    Thank you very much!
    Best regards,
    George
    Attachments:
    encoder continous 21-4-2013.vi ‏28 KB

    Hi,
    Have you seen these two articles?
    http://digital.ni.com/public.nsf/allkb/68806B93A21​355E98625726F0064822B
    http://digital.ni.com/public.nsf/allkb/5D42CCB17A7​0A06686256DBA007C5EEA
    Basically, it can be done, but be aware it may not be as accurate as you would like.  Follow the code in the first article and note that the easiest way would be to just use the basic File I/O VIs to write to text file, since the Write to Measurement File VI will only work with waveforms and you have counter output.
    Matt Lee
    National Instruments
    Applications Engineer

Maybe you are looking for

  • How to read frequency channel & voltage channels at the same time with different rates?

    I am using a DAQCARD 6036E with a SCXI-1000 chassis.  I have a SCXI-1100 & a SCXI-1126 modules, along with a SCXI-1124 AO module for voltage output.  I am acquiring several voltage input channels with the SCXI-1100 & one frequency channel (frequency

  • ITunes 10 no longer recognizes my my iPhone4, wants me to set up new iPhone

    My iPhone4 has been synced with my computer several times over the past 6 months. When I plugged it in today to upload new music and update to OS 4.2, it tells me "this computer has previously been synced with an iphone or another ios device." It als

  • Internal error in FORM/FUNCTION MLCCS_PLANSPLIT_READ

    Hi, While settling a Production Order we are getting the error as 'Internal error in FORM/FUNCTION MLCCS_PLANSPLIT_READ' . I checked the routing . There are no activities for the Production order. Can any body sugest any solution for the same. Thanks

  • HELP! New Itunes version doesnt open

    Hello, I am operating windows 8.1 and have recently installed itunes 11.1.4.62. And now everytime I try to open itunes I get the following message: "The procedure entry point ?videoTracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTT rack@@@***@@$0A@VCrashO

  • The symbol '' changes to a square box in ODI

    Hi All, I have a query where there is a condition such as the one mentioned below:- DECODE (mc.CURRENCY, '','EUR', mc.CURRENCY When I copy Paste this code the symbol '' gets converted to a square box and the condition returns no rows. I am able to se