Time Stamp on MAXL Export File

I use MAXL to export data from our Essbase cube. Is there a way to add a time stamp to the filename?

I've never been able to do this directly through MaxL. If someone out there knows a way, please share.<BR><BR>The way I do this is by using DOS to rename the file after MaxL has exported it.<BR><BR>So assume you have a MaxL script 'test.mxl' with the following code in it:<BR><BR>login user password on 'localhost';<BR>export database zTest.PandL all data to data_file 'zTestX.txt';<BR>exit;<BR><BR>Then you have your .bat file that calls your MaxL script and in the .bat file you have the following code:<BR><BR>essmsh D:\\MaxL\Test\Test.mxl<BR>ren D:\Hyperion\Essbase\App\zTestX.txt zTest%date:~4,2%-%date:~7,2%-%date:~10%.txt<BR><BR><BR>''The first line calls the MaxL script and upon completion runs the second line which renames the file and adds the date stamp to it.<BR><BR>Don't ask me how to change the date format, I picked up the rename code from someone else. Although, by playing around with it, You can probably get it to look the way you want.<BR><BR>Of course all of this assumes you are using Windows 2000 server. It should work the same in 2003, not sure about NT. You're on your own if it's UNIX, but the same principles should apply, you just need to figure out the code for a Unix command line to do a file rename.<BR><BR><BR>Best of luck.

Similar Messages

  • Time stamp data write to file problem

    Hello!
    I'm just learning LabView, and have arrived at the stage of writing time-stamped data to text files.
    This seems clear enough, however when I examine the file written to disk, I find 4 unexpected characters: 3 spaces and one seemingly random number or punctuation mark, preceding every line!
    An example is:
       .2005-07-15 10:55:40.0 the value is 0.0000 cm
       .2005-07-15 10:55:40.5 the value is 1.0000 cm
    The four characters "   ." are those whose origin I can't understand. I can't seem to get rid of them.
    They seem to change with the input string, but not in a manner I can predict or understand.
    Any hints or explanations would be greatly appreciated, as I'm at wit's end after 1/2 day of puzzling over this little problem!
    Alex
    Attachments:
    time stamp data write VIs.zip ‏24 KB

    Alex,
    You found one of the subtle little things that can be frustrating to old-timers and newcomers alike. I did not recognize it until I read the help file (and I have been using LV since version 1.2).
    First, the three characters before the commas are nulls (\00).
    The reason they are there is in the help file for the Write File.vi. By wiring an array to the data input, you caused the VI to write a header telling what data format was used.
    I modified your VI to simply concatenate the strings and then write a simple string to the file. I think this may be what you were after.
    Lynn
    Attachments:
    write timestamp text line to file v3.vi ‏47 KB

  • 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

  • How to remove time stamp on query export?? HELP

    I am runnning SQl Developer 2.1 and built a query which returns dates that letters were mailed and or correspondence received. My Query Results show normal date format (02-Mar-12) within Developer. When I export the results to Excel it includes the time stamp (02-MAR-12 06.13.20.000000000 PM). I had a coworker with an older version run the same query, when she exported the results the time stamps weren't exported, just the date. How can I change the export to remove the time stamp? Any help would be great. Thanks.
    Nate

    Hi,
    Clearly a bug. You can try changing your Tools|Preferences|Database|NLS|Timestamp Format to match the Date Format as a workaround. Otherwise why not upgrade to the lastest production SQL Developer release (3.1.07.42)? The bug does not occur there.
    Regards,
    Gary
    SQL Developer Team

  • How to provide date and time stamp to the extracted file.

    I 'm downloading data from DB to Flat file using GUI_DOWLOAD. whenever it is executed it is creating with a file name.
    if i rerun the program the file is overwriting with the same name.
    now based on the requirement how many times i executed, that many times file should be individually created and should be added with date and time stamp.
    like
    if when i executed  at the very first time it should saved with filename, date and time.
    say "Address.txt 04/05/2007 07:55:10"
    When i executed it for second time it doesn't overwrite the file.
    it should create a new file.
    like "Address.txt 04/05/2007 07:59:20".
    Please guide me the way if possible code.
    Thanks in advance.

    Hi Vamsi,
                   Use FM 'F4_PROGRAM' to take file from the user .
    In this case user will enter the file name. u can append date & time to that file path.
    Refer this code.
    CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SY-REPID
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_P_FILE.
    concatenate P_FILE '04/05/2007 07:59:20' into V_FILE.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
          write_field_separator           = 'X'
        TABLES
          data_tab                        = i_tab
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE i002.
      ENDIF.
    Reward points if helpful.
    Regards,
    Hemant.

  • Changing time stamp format in the file receiver adapter file name

    Hi all,
    How can we change the standard date time stamp from
    filename_yyyymmdd-hhmmss-mil
    to
    filename_yymmdd_hhmmss
    i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds.
    I read in the forums that I have to use the combination of variable substitution and mapping functions to do this, but not sure how exactly.
    Can the experts help me with this please?
    Many thanks.

    Hello Ramesh,
         You can make this possible using runtime filename creation using UDF.
    Please go though the below steps.
    Message mapping:  
    Create an UDF and include the piece of code that captures the Filename and Timestamp from source side via ASMA.
    Modify them according to our requirement by adding the <Timestamp> at the end of <filename> with _.
    Map the UDF to any of the top level node so that the modified filename will be available for the target communication channel
    UDF Code is:
    try {
    String filename    = "";
    String timestamp = "";
    DynamicConfiguration conf1 = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","SourceFileTimestamp");
    filename = conf1.get(key1);
    timestamp = conf1.get(key2);
    filename = filenametimestamp".xml";
    filename = filename.replaceAll( "-" ,"_" );
    conf1.put(key1,filename);
    return filename;
    catch(Exception e)
         String exception = e.toString();
          return exception;
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute that are required to be captured during run time. In our case File Name and Source File Time Stamp are required to be checked
    In the receiver communication channel Mention u2018 * u2018as File Name Scheme.
    Click on Advanced tab and check the Option u201CSetAdapterSpecificMessageAttributesu201D in addition to that check the attribute u201CFile Nameu201D which will carry the modified value in the UDF .
    i hope this will help you.
    Monica

  • Date and time stamp on dump & log file using EXPDP in HP-UX

    Hi All,
    Can someone help me with the below issue
    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0 , Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    #!/usr/local/bin/bash
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2; export ORACLE_HOME
    PATH=/u01/app/oracle/product/11.2.0/dbhome_2/bin; export PATH
    mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
    ORACLE_SID=PD; export ORACLE_SID
    expdp system/0@PD DIRECTORY=prod_exports DUMPFILE=FULL_EXP_PD_${mydate}.
    dmp LOGFILE=FULL_EXP_PD_${mydate}.log compression=all schemas=SYSADM

    991805 wrote:
    Hi
    Thank you very much for your reply. The problem is the time stamp is not coming on my dumpfile
    So what are you getting?
    Works for me:
    #!/bin/bash
    export ORAENV_ASK=NO
    export ORACLE_SID=orcl
    . oraenv
    mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
    echo mydate is $mydate
    expdp system/halftrack directory=data_pump_dir dumpfile=full_exp_${mydate}.dmp logfile=full_exp_${mydate}.log schemas=scott
    ls -l /u01/app/oracle/admin/orcl/dpdump
    2014-01-03 15:28:36
    oracle:orcl$ ll
    total 260
    -rwx------ 1 oracle oinstall    300 Jan  3 15:27 doit
    -rw-r----- 1 oracle asmadmin    116 Jan 31  2013 dp.log
    -rw-r----- 1 oracle asmadmin 249856 Jan  3 15:28 full_exp_2014_01_03_15_27_34.dmp
    -rw-r--r-- 1 oracle asmadmin   1974 Jan  3 15:28 full_exp_2014_01_03_15_27_34.log

  • Write the time stamp to a excel file

    Dear all superusers,
    The title imply my question that is how to store every time stamp obtained to an excel file.  But when open the file, it contains nothing. Could someone help on this matter.
    Regards,
    Lee Joon Teow
    Electronic Test Engineer

    Hi LJ,
    here's an example for writing timestamp to Excel-compatible csv file...
    The details of the calculation are given here!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    TimestampToCSV_LV80.vi ‏11 KB

  • Re-setting time stamp on original photo files

    I have approximately 1000 old slides I scanned in to my old PC using photoshop. I'd like to reset the time stamps to when the photos were taken, not just in iphoto, but on the original files, so that they would retain their time stamp after being moved to backup storage, and viewable on a PC. Presently iphoto shows these photos according to the date they were scanned in.
    If iphoto cannot do this (which I suspect), would someone recommend the best reasonably-priced program to buy to do this?
    Thanks
    Scott

    I would recommend Applescripts Script Editor. It works within the iPhoto program and you can change either the date and/or the time stamp on one or more photos. Good luck with it. It is free as well.
    Jon

  • Time stamp changes when exporting...

    Hi,
    I sometimes want to export an Aperture album to iPhoto so I can then send it to iDVD as a slide-show. I sometimes use Photoshopped jpeg diagrams (not photos) mixed in with my raw originals in the Aperture album as well. I've altered their time stamps so they everything is sorted chronologically as I'd like them.
    When I export to a folder I'm finding that the time stamps are being altered and I have to tweak the order in iPhoto - or export with new filenames and sort by title afterwards. This behavious is very puzzling, is it a bug or a feature???

    I have the same problem using Photoshop Elements as the editor. The time is changed by 1 hour. Why....? Has anyone found out how this can be stopped?

  • Change in time stamp format in receiver file name

    Hi,
    We have a scenario as AS2 - PI - FTP Server (AS/400). We want target file name as BMMDDHHSS where B is constant and
    MM (month e.g., 01), DD (day e.g., 12), HH (hour e.g.,11), SS (seconds e.g., 12). Is there standard way of doing this, just by changing some configuration in receiver file adpter?
    Please let me know, how could we do this using PI. If script is optional, keeping as back-up only.
    How come, naming dynamic receiver file names are so difficult in PI. I have been trying to get the answers for our another requirement like to name receiver file as C1.YYMMDD.C2 in a file pass through scenario for more than a month.
    It is just file through scenarios, so we can't use variable substitution as we are not going to read content/payload of file
    Thanks in advance,
    - Riya Patil

    Hi Shabarish 
    Thanks for your reply. I have trying to make this UDF work since almost a month with no luck. Can you please check where am I doing wrong?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = "C1." + a + ".C2";
    conf.put(key, SourceFileName);
    return " ";
    In the above code, I am passing date as "a". And mapping CurrentDate (formatted) --> UDF --> Target root node.
    I am getting the following error in SXMB_MONI:
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Lockbox_Filename_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
    <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_Lockbox_Filename_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
    Your help would be much appreciated.
    Thanks,
    Riya Patil

  • Changing an export file name by using a time stamp

    Hello Everyone,
    I am trying to create a way, utilizing the Report Attributes/Report Export field, to have an export file created with a time stamp associated with the file name.
    The reason for this is that I have users who will do multiple exports to Excel from a single parameters driven report. As opposed to manually giving the file a unique name each time the export occurs, I would like to give the export a time stamp as part of the name therefore making it unique.
    Any help would be greatly appreciated.
    Thank you

    I found the typo mm instead of MM which was my problem from the beginning.  MM represents month not mm.  A simple mistake that costed a lot of time.  Thanks Mike
    Cheers, you're very welcome. Glad I could help out.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How to include seconds and millisecon​d in the CSV file time stamp generated by the SpreadShee​t Object?

    I'm Using Lookout 6.02, in a XP Pro Windows Machine, Service Pack 3.
    I have an application that collects data at the rate of 20 samples per second. It works just fine, the CSV File contains all the samples without missing a single one.
    The problem is that the time stamp in the data file only shows hours and minutes. With 20 sample per second, there are 1200 samples per minute. It is hard to figure out in which second or sample number, occurred some events collected. These files are open with Excel and analyzed with Excel. There is no easy way to implement a search or a guidance for knowing the sample number or the exact time in Excel.  My problem is to add the seconds and if possible the milliseconds to the time stamp done by the spreadsheet object.
    Any suggestion?
    Other ways to do the same that includes the time stamp all the way down to milliseconds?

    Create another column with the Now() function, then set the calumn format to hh:mm:ss.s
    expression would be now(trigger) for the date and time or now(trigger)-today(trigger) for just time
    The trigger will cause the expression to stay updated, perhaps using the same trigger for logging the spreadsheet.
    Good luck
    Mike
    Message Edited by Mike@DTSI on 01-16-2009 04:12 PM
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • File name with Dateand time stamp.

    Hi All,
    I want to generate a file with a date and time stamp.
    For that in File Receiver adaptor i am using option "Add Time Stamp" in File Construction mode. however it is generationg file name as: FileName_20082104_121211_645.txt . In this I don't know what these last three characters "_645" are? And In the File name i only want a file name with datetime stamp . I don't require underscore in between. for eg: FileName_20082104121211.txt (FileName_dateTime.txt)
    Can anybody suggest me the way to achive this?
    Thanks,
    Atul

    @FileName_20082104_121211_645
    The date time stamp in XI's file adapter will be in that format. This is to avoid over writing of files created simultaneously at the same time. So the last 3 digits is a form of an unique id to distinguish between the same.
    In case you want the format as FileName_20082104_121211, use the dynamic configuration and create the file name inside the mapping itself and pass it across.
    To get an idea about the same, ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - an usage of the same.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

  • 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

Maybe you are looking for

  • Server service does not start, error 1075

    "Could not start the Server service on Local Computer - Error 1075:  The dependency  service does not exist or has been marked for deletion" Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Srv] "Type"=dword:

  • Help, Itunes wont recognise Iphone 4s

    When I connect my Iphone 4s to my PC iTunes doesnt recognize it. I followed a lot of tutorials online but when I try to install the Apple Mobile Device USB Driver it gives me a code 37 error. I have no idea what else to do, can anyone help me?

  • Adobe Acrobat Pro X Shared Review Process

    I have a problem when addressing to one person's name when trying to send a review PDF. As shown in the image, the person's name does not bet recognized in MS Outlook. At this time, this is the only person's name that fails. However, I can send this

  • CPU System usage ver high

    I have a brand new macbook pro, had it about 3 wks so I'm frustrated to be having problems already. My CPU system usage stays around 89%, but my user is like 3%. Haven't downloaded any big apps or anything onto it. Imported my itunes library, not a h

  • Oracle Developer Day in Greensboro, NC  April 23, 2003

    Join us for a free Oracle Developer Day on Forms Upgrade to the Web on April 23, 2003 at Greensboro, NC. This event gives you the technical information on upgrading and running your Forms on the Web. To register visit: http://otn.oracle.com/events/ot