The export file from a calc script - naming and date/time stamp

Here is a simple calc script to export data.
2 questions:
1. Is there an easy way to add a date/time stamp on the name of the data file so that it does not overwrite the older ones every time?
2. I tried to specify the path so that it write to another server. "\\mfldappp011\E:\Exp_AW.txt". It's not working. How should I specify the path ?
Fix (@Relative("Yeartotal",0),"Actual","Working",&ActualYear);
Dataexport "file" "," "C:\Exp_AW.txt" "#MI";
EndFix;
Edited by: user9959627 on Sep 7, 2012 11:25 AM

Probably easiest to call the maxl script from a command line script, then rename the exported file to include the tme stamp and copy/move it to a location.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Lightroom mobile syncing is super slow and stop for no reason. cannot resume syncing. no idea with the progress of syncing. cannot sync the original file from mobile into desktop.

    lightroom mobile syncing is super slow and stop for no reason. cannot resume syncing. no idea with the progress of syncing. cannot sync the original file from mobile into desktop. stuck and cannot process any further.

    Hi. Did you trigger a delete data via LR preferences ->Lightroom mobile.
    I'm not seeing a catalog connected to your account.
    Did you import originals via the connection-kit?
    Thanks
    Guido

  • Is there metadata of any kind on an export file that shows me the project file from where it was created?

    Is there any way in looking at the meta data of a .MOV exported from Final Cut 7 that allows me to see what the project file was? I have this exported file, but I can't locate the original project file from where it was from. Was hoping there would be some sort of data that exists that shows me the directory. I've searched by filename and date created all over my drives but no luck.

    Well, FCP comes from an age where it was assumed the editor had his $#%^ together.
    EDIT: One of my mentors had the conviction that every day when you left the cutting room, you should leave it in such a way that a perfect stranger could walk in in the morning and pick up right where you left off. I really strive to live up to that ideal. I know we all get crazy busy and don't always properly archive our stuff, but it DOES save a lot of headaches down the road.
    Message was edited by: Jim Cookman

  • DATAEXPORT - set Dynamic File name in Calc Script

    Hi,
    I have a calc script which exports data from BSO cube to a flat file. Currently I have hard coded file name within the calc script which is
    DATAEXPORT "File" "," "D:/in/CAPXPT_FERC_*FY12*.txt";
    and, for example, I want use the substition varaible to dynamically assign the file name let' say
    DATAEXPORT "File" "," "/u11/oracle/OHDDEVD/in/CAPXPT_FERC *" + &fYear + "*.txt";
    Is there any way to set the export file name dynamically?
    Thanks for your help
    Regards,

    A kind of intriguing thought would be to use the sub var as a way to drive the file name, then grab Robb Salzmann's CDF to dynamically set sub vars on the fly, and then use a RTP to grab that string. I have no idea if this would all tie together, but it would be interesting to try.
    Here's Robb's post: http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html This is my second in a row post that refers to his CDF -- it is almost like that's my pseudonym except of course I'm too thick to write a CDF.
    Regards,
    Cameron Lackpour
    Edited by: CL on Sep 20, 2011 10:36 AM
    Spelling. Arrgh.

  • How to make SSIS packages automatically read the input file from a path?

    Currently I am using a SSIS package to read data from a .dat file and load it into SQL Server tables.
    I am placing the input .dat file on the desktop. In the connection manager -> Browse option, I am pointing this file to create connection.
    The file naming convention is like - aSNAP_Data_20140926_P-2014-09-26_07.02.36
    However, I need the SSIS package to automatically read the input file from a folder which is located in a remote server. This folder has lots of files where input files are added on a daily basis with the date value in the file name as mentioned above.
    I want to schedule the SSIS package to run daily and take the latest file in the folder based on the date.
    Please let me know how to do it. Any help would be highly appreciated.....
    Thanks in advance.

    Hi SQL_SSIS_Dev,
    According to your description, you want to get the latest file from a path to a SQL Server table. After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
    Create two variables, VarFolderPath stores the folder path in which our files exist, VarFileName hold the value of most recent File Name.
    Drag a Script Task from SSIS Toolbox to Control Flow Pane, then select “User::VarFolderPath” as ReadOnlyVariables, select “User::VarFileName” as ReadWriteVariables.
    Then Edit Script with the C# code below:
    Add “using System.IO;” into namespace.
    Add the code below under Main function:
    var directory= new DirectoryInfo(Dts.Variables["User::VarFolderPath"].Value.ToString());
                FileInfo[] files = directory.GetFiles();
                DateTime lastModified = DateTime.MinValue;
                foreach (FileInfo file in files)
                    if (file.LastWriteTime > lastModified)
                        lastModified = file.LastWriteTime;
                        Dts.Variables["User::VarFileName"].Value = file.ToString();
    Drag a Data Flow Task to Control Flow Pane and connect to Script Task.
    In the Data Flow Task, drag a Flat File Source with a file in the source folder as all the files have same structure as the File name.
    Add the property below the Flat File Connection Manger expression:
    Property: ConnectionString      Expression: @[User::VarFolderPath] +"\\"+ @[User::VarFileName]
    Drag an OLE DB Destination that connect to the Flat File Source, then configure a table to store the data.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Change the export file format

    Hello,
    I got a request that i need do the following changes for the existing FDM location.
    1. Change the export file column order. e.g
    Before: a,b,c,d
    After: b,d,a,c
    2. Remove the header of the export file. e.g
    Before: Entity Product Account
    "NA" "NewProduct1" "100"
    After: "NA" "NewProduct1" "100"
    I can not change the calc order in the adapter since many FDM locations are using the same adapter. And many FDM locations are using the same export action script.
    Do you have any idea how can i do this ?
    Thanks,

    It doesn't matter which adapter you are using that approach will work. Any custom modification of the output column order which overrides the calc sequence can be done in the Export Action script. Be aware though that any changes to Action script will affect your support agreement with Oracle if you have one. Therfore it may be best to put any custom output in the AftExport event script.

  • Create 8i export file from a 9i database

    I understand that to create an Oracle Release 8i Export file
    from an Oracle9i database we must run Oracle release 8i Export
    against an Oracle9i server.
    However, before we do the export, do we need to run
    8i "CATEXP.SQL" script to the 9i database ?
    Thanks.

    In which directory can the file be found, as in http://www.thinkfuturerecruitment.co.uk/beta/admin/ http://www.thinkfuturerecruitment.co.uk/beta/admin/admin.php and what is the name of the file, as in myCV.pdf
    Gramps

  • HT2548 how do i copy the domain file from OS 10.4 to a lion OS computer?  I made a copy of the domain file and copied it to my new computer, but it doesn't open in iweb when I double-click on it.

    How do I import an iweb domain file from an ibook (OS 10.4) to an imac (OS 10.73)?
    I copied the domain file from my ibook to my imac, but when I double-click on the file, it doesn't open in iweb. 

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.  Then place the domain file in your Users/Home/Library/Application Support/iWeb folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Schema Import failed :IMP-00008: unrecognized statement in the export file:

    Hi ,
    I was running a database schema import from a database DMP file.
    I encountered the following error in the log file that was getting generated :
    IMP-00008: unrecognized statement in the export file:
    All the tables got copied except for one. Now what I have thought of is to import that one table again after taking an export from the prod schema.
    But what about the functions,triggers,procedures ?? How do i bring all of them in the schema ?
    If reimporting the schema again the only option ?
    Thanks
    Kk

    Hello,
    In this order:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023988
    Table Objects: Order of Import
    Table objects are imported as they are read from the export file. The export file contains objects in the following order:
    1. Type definitions
    2. Table definitions
    3.Table data
    4.Table indexes
    5. Integrity constraints, views, procedures, and triggers
    6. Bitmap, function-based, and domain indexes
    The order of import is as follows: new tables are created, data is imported and indexes are built, triggers are imported, integrity constraints are enabled on the new tables, and any bitmap, function-based, and/or domain indexes are built. This sequence prevents data from being rejected due to the order in which tables are imported. This sequence also prevents redundant triggers from firing twice on the same data (once when it is originally inserted and again during the import).
    For example, if the emp table has a referential integrity constraint on the dept table and the emp table is imported first, all emp rows that reference departments that have not yet been imported into dept would be rejected if the constraints were enabled.
    When data is imported into existing tables, however, the order of import can still produce referential integrity failures. In the situation just given, if the emp table already existed and referential integrity constraints were in force, many rows could be rejected.
    A similar situation occurs when a referential integrity constraint on a table references itself. For example, if scott's manager in the emp table is drake, and drake's row has not yet been loaded, scott's row will fail, even though it would be valid at the end of the import.

  • Imp-00008: unrecognized statement in the export file

    Hi All,
    I am trying to import an export from Oracle 8.1.7 source system to Oracle 11.2 using imp . I am getting the following errors may times during the import process.
    imp-00008: unrecognized statement in the export file
    The character set of Source data base is WE8DEC and the character set of target data base is WE8MSWIN1252 and i get the below statement during the start of the import
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8MSWIN1252 character set (possible charset conversion)
    export client uses WE8DEC character set (possible charset conversion)
    export server uses WE8DEC NCHAR character set (possible ncharset conversion)
    The error imp-00008: unrecognized statement in the export file is it due to the Oracle version compatibility or due to Character set compatibility issue.
    I tried to create a new Database on same Oracle sever and i cant find WE8DEC in the list of character set to choose. Please help me on how to proceed.
    Regards,
    alen.

    934571 wrote:
    Hi Srini,
    Data is getting loaded correctly, but i get several of these error imp-00008: unrecognized statement in the export file messages during the import process, so i am not sure what is missing.
    Pl post the complete error message from the import log file.
    1) Is it possible to import the dump exported form oracle 8 into oracle 11?? Do we need to take any special care during the import ??
    Yes - no special requirements are needed.
    2) The Oracale Database character set it WE8DEC, but when i try to create a new database in 11 , i dont find that character set , is the character set obsolete now , if so what character set is super set of WE8DEC ??
    Pl post exact OS and database versions. Ideally you should be using AL32UTF8 for all new databases. WE8DEC is a deprecated characterset.
    See section 4.2.1 here - http://docs.oracle.com/cd/E11882_01/install.112/e24186/install.htm#BABFDDEA
    Thanks,
    Alen.HTH
    Srini

  • Exporting files from Final Cut Pro in Snow Leopard

    I am using Final Cut Studio 2. I recently upgraded to Snow Leopard. Before the upgrade when I would export files from Final Cut the dialog box would automatically go to the last used folder location. Now, each time it goes to the system hard drive. Is there a way to fix this?
    Thanks

    Fix what?
    Just choose the correct folder to which to export.

  • What data is contained in the export file for a transportable tablespace?

    "This operation will generate an export file, jan_sales.dmp. The export file will be small, because it contains only metadata. In this case, the export file will contain information describing the table temp_jan_sales, such as the column names, column datatype, and all other information that the target Oracle database will need in order to access the objects in ts_temp_sales."
    What is the other information?

    I don't have the sales dump. I was only quoting from the documentation. What i have is an export of 18 tablespaces - 9 partitioned data tablespaces and 9 partitioned index tablespaces.
    What I was trying to determine was if I could still import the tablespaces if the tablespace files were from a time that was after (one week) the original export of the metadata or if there was some bit of information that was held in the metadata which would prevent this.

  • Import export file from hands-on training session

    I have download the required files from the Forms hands-on training session and want to install the database. After a succesfull ftp upload of the export file (binary method) to a HP-UX system, I import the file as indicated in section 7 of the installation instructions.
    I then receive several kind of the following messages:
    Import: Release 8.0.5.0.0 - Production on Mon Aug 14 19:38:29 2000
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connected to: Oracle8 Enterprise Edition Release 8.0.5.0.0 - Production
    PL/SQL Release 8.0.5.0.0 - Production
    Export file created by EXPORT:V08.01.05 via conventional path
    IMP-00008: unrecognized statement in the export file:
    AD 6U
    IMP-00008: unrecognized statement in the export file:
    %G6BYI2m"<9lza`k)@Q'UQIf5{$>8@?`c=@
    IMP-00008: unrecognized statement in the export file:
    9
    IMP-00008: unrecognized statement in the export file:
    Kz`
    IMP-00008: unrecognized statement in the export file:
    Is it because of the import against a 8.0.5 database or is perhaps the export file corrupt?
    I hope you can help me.
    Best regards,
    Erika van der Aar
    E-mail: [email protected]

    Hi,
    Please go through the below blog:
    How to Export/Import and activate .sca files in SAP Composition Environment - CE local development
    Hope this helps!!!
    BR,
    Anurag

  • EFT Export file from SBO

    Hi All
    I want to use the payment wizard eft export function but i'm not sure how to create an export file that can be exported from SBO then imported into the Banking solution (Nedbank, South Africa , Standard Bank (SA) , and FNB (SA).
    My thinking was liaising with the bank technician with regards to the format file to be imported. I don't remember correctly but i think I saw some where on the portal a software that can be used to generate country specific eft format file.
    Any help will be appreciated.
    Thanks,
    Bongani Dlamini

    Hi Bongani,
    we have a similar solution. Bank export files are called DTA (in germany). Therefor you need the payment wizard and the payment engine addon. You just need to set up the payment methods. There you could choose the export definition.
    I think, the program you are searching for is the payment engine. It comes with a lot of export definitions.
    If there is not a correct export definition, you need to create a new one. Therefor you could use the addon format definition. With this addon you could create a export definition, which you connect to your payment method. You need to ask your bank for the layout of the export file.
    Regards Steffen

  • Exporting files from iPod

    I have a lot of videos saved to my iPod that got deleted from my computer because I didn't have the space to store them. Now, my sister has an iPod, and I want to give them to her. I want to know if it's possible to export files from an iPod to a computer, but I'd welcome any other suggestions related to the situation.

    http://discussions.apple.com/thread.jspa?messageID=2647831&#2647831
    http://discussions.apple.com/thread.jspa?messageID=2647790&#2647790
    http://discussions.apple.com/thread.jspa?messageID=1660579&#1660579

Maybe you are looking for