Creating a header for a .CSV file

Hi,
I have looked through the forums and cannot find a solution for creating a header for a csv file.  I am using Labview 8.2.  I want a label for each column at the top of the file and then I will append new rows to the file as the data is collected.  An example of what I am looking for is attached.
It would also be nice to have the labels descending in the first column, pretty much a transposed version of what was described above. 
Thanks,
Gary 
Solved!
Go to Solution.
Attachments:
exampleLOG.csv ‏1 KB

Thank you very much.  That worked well. 
If i wanted to transpose the data how would I do that?  I can get the header to be vertical, but I cant get the data to append to the 2nd column , and then the third and so on with the data descending from top to bottom.  I attached an example of what I might want the file to look like. Each column would be added one at a time.
Attachments:
data3.csv ‏1 KB

Similar Messages

  • To create an header for Open Hub extract

    Hi guys,
    How do i get an header for an open hub extract for a CSV file, an header consisting of the field names technical or otherwise.
    Thanks,
    Your help will be greatly appreciated

    hi,
    Field definition
    On the Field Definition tab page you define the properties of the fields that you want to transfer.
    We recommend that you use a template as a basis when you create the open hub destination. The template should be the object from which you want to update the data. This ensures that all the fields of the template are available as fields for the open hub destination. You can edit the field list by removing or adding fields. You can also change the properties of these fields.
    You have the following options for adding new fields:
    ●     You enter field names and field properties, independent of a template.
    ●     You select an InfoObject from the Template InfoObject column. The properties of the InfoObject are transferred into the rows.
    ●     You choose  Select Template Fields. A list of fields are available as fields for the open hub destination that are not contained in the current field list. You transfer a field to the field list by double-clicking on it. This allows you to transfer fields that had been deleted back into the field list.
    If you want to define the properties of a field so that they are different from the properties of the template InfoObject, delete the template InfoObject entries for the corresponding field and change the properties of the field. If there is a reference to a template InfoObject, the field properties are always transferred from this InfoObject.
    The file or database table that is generated from the open hub destination is made up of the fields and their properties and not the template InfoObjects of the fields.
    If the template for the open hub destination is a DataSource, field SOURSYSTEM is automatically added to the field list with reference to InfoObject 0SOURSYSTEM. This field is required if data from heterogeneous source systems is being written to the same database table. The data transfer process inserts the source system ID that is relevant for the connected DataSource. You can delete this field if it is not needed.
    If you have selected Database Table as the destination and Semantic Key as the property, the field list gets an additional column in which you can define the key fields for the semantic key.
    In the Format column, you can specify whether you want to transfer the data in the internal or external format. For example, if you choose External Format here, leading zeros will be removed from a field that has an ALPHA conversion routine when the data is written to the file or database table.
    Assign points if helpful
    Cheers!!
    Aparna

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • RDBMS sync creating it's own accountactions.csv file

    Trying to set up to do batch uploads of network devices and Users.
    I've created a small test accountactions.csv file and placed it on an FTP server.
    When we try to get ACS to pull this file we get this error in the report
    "No import CSV file on FTP Server - nothing to process"
    However in the same directory the ACS server does create an empty file with a name of accountactions.csv.read .
    So now in the directory we've got two files
    accountactions.csv
    accountactions.csv.read
    Any idea what is going on? Have we missed something simple?

    Hi, use proper format for that file. See:
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacsapp/csapp33/user/ag.htm#wp395615
    Action codes which are needed for VSA importing are listed in:
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacsapp/csapp33/user/ag.htm#wp393038
    basically you need action codes - 350 to 355.

  • Unable to create shared mailboxes from a csv file

    Hi,
    I have a list of 130 shared mailboxes that I must create. So I created a CSV file like this:
    Name,Alias,OrganizationalUnit,Database,UserPrincipalName
    John Smith,jsmith,domain.com/accounts/shared,mailbox database A,[email protected]
    Mark Flone,mflone,domain.com/accounts/shared,mailbox database A,[email protected]
    ETC.....
    The list is ready and it is saved.
     import-csv C:\path | New-mailbox -Shared
    the Error is the following:
    "Cannot bind parameter 'Name' to the target. Exception setting "Name": "The property can't be empty."
    I went into my spreadsheet and Trimmed everything, then saved and still the same error result.
    Then I tried the following:
    import-csv C:\temp\sharedMailboxCreationTest.csv | ForEach-Object {New-Mailbox -shared  -Name $_.Name  -Alias $_.Alias  -OrganizationalUnit $_.OrganizationalUnit -UserPrincipalName $_.UPN -Database $_.Database}
    The Error:
    "Cannot bind argument to parameter 'UserPrincipalName' because it is an empty string."
    What am I missing here?
    Alexis

    You have UserPrincipalName column heading in the csv file so this should be your cmdlet.
    import-csv C:\temp\sharedMailboxCreationTest.csv | ForEach-Object {New-Mailbox -shared  -Name $_.Name  -Alias $_.Alias  -OrganizationalUnit $_.OrganizationalUnit -UserPrincipalName $_.UserPrincipalName -Database $_.Database}
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Creating Draft in B1iSN from CSV file

    Hi All,
    I want to create Draft from CSV file wich I used to create AP Reserve Invoice. I had no problems with creatoing Reserve Invoice. Everything works fine. Now I want to create Reserve Invoice Draft so I added to xsl file
    <DocObjectCodeEx>22</DocObjectCodeEx>
    I got an error that there is no such a property in Document. Then I changed it to
    <DocObjectCode>22</DocObjectCode>
    And still got an error that this field isn't supported for this dokcument.
    Please tell me how to create Draft in B1iSN?
    It's mystery for me right now.
    Regards
    Szymon

    Hi Szymon,
    Check this thread: How to Object Type of Draft Tables
    Thanks,
    Gordon

  • Creating multiple instances for a single file in B2B

    Hi,
    I have a requirement to read the camt.053 file from the remote partner using Oracle B2B and send the file to oracle AIA and insert the data in the ERP database tables. I am able to read the file successfully through B2B using listening channel and send the data to AIA and insert the data in ERP tables but, if there is any error occured while inserting the data in the ERP tables it is creating multiple instances(6 message count) for the same file in B2B reports. where as it is creating only one entry in reports in case of successful insertion. I have not given any retry count in listening channel nor in the database adapter in SOA/AIA composite. I am confused from where B2B is retrying the message ? Do i need to set any system properties? Could you please guide me to resolve this issue?
    Regards,
    Nishanth.

    App message delivery is not retried in B2B, rather failed messages are delivered to the IP_IN_QUEUE. Please enable the logging for B2B engine in TRACE 32 mode and run a test to reproduce the behaviour. Post the log here or mail across to my id (in my profile).
    Regards,
    Anuj

  • How to create complecated Header for JTable in a JApplet ?

    I have one JTable in a JApplet.
    I need to create a complecated header for the table. For that I have used a downloaded code in the URL http://www2.gol.com/users/tame/swing/examples/JTableExamples1.html (First example).
    Instead of "GroupableHeaderExample.java", I have used my code "StatusReportPopupMenu.java".
    The program runs properly in appletviewer. But, when I try to open the same in IE 5.5, first it shows the message "Loading Java Applet" . Then it goes blank. The status bar shows the message: Start: applet not initialized". At the Java console of the browser, I could see the Exception as given below:
    java.lang.NullPointerException
         at GroupableTableHeaderUI.getHeaderHeight(GroupableTableHeaderUI.java:97)
         at GroupableTableHeaderUI.createHeaderSize(GroupableTableHeaderUI.java:118)
         at GroupableTableHeaderUI.getPreferredSize(GroupableTableHeaderUI.java:128)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source)
         at java.awt.Container.preferredSize(Unknown Source)
         at java.awt.Container.getPreferredSize(Unknown Source)
         at javax.swing.JComponent.getPreferredSize(Unknown Source)
         at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at sun.plugin.AppletViewer$AppletEventListener.appletStateChanged(Unknown Source)
         at sun.applet.AppletPanel.dispatchAppletEvent(Unknown Source)
         at sun.applet.AppletPanel.appletResize(Unknown Source)
         at java.applet.Applet.resize(Unknown Source)
         at java.applet.Applet.resize(Unknown Source)
         at java.awt.Component.setSize(Unknown Source)
         at sun.plugin.AppletViewer$AppletEventListener.appletStateChanged(Unknown Source)
         at sun.applet.AppletPanel.dispatchAppletEvent(Unknown Source)
         at sun.applet.AppletPanel.appletResize(Unknown Source)
         at java.applet.Applet.resize(Unknown Source)
         at java.awt.Component.setSize(Unknown Source)
         at StatusReportPopupMenu.init(StatusReportPopupMenu.java:245)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I'm not able to figureout what should I do to correct the problem.
    Please help. This is very urgent.

    Hi,
    1. For this we have to use the
    authorisation object
    P_ORGIN
    2. It has got the following fields, on which authorisations can be controlled.
    AUTHC Authorization level
    INFTY Infotype
    PERSA Personnel Area
    PERSG Employee Group
    PERSK Employee Subgroup
    SUBTY Subtype
    VDSK1 Organizational Key
    Regards,
    Harish

  • Create external table on a CSV file with a variable number of delimiters

    Hi experts,
    I was wondering what the best approach for the following issue.
    I'm trying to create an external table on a file which has in each record (on a new line 'RECORDS DELIMITED BY NEWLINE') a variabel number of delimiters. By example my delimiter is a comma , in the first record I have 100 comma's in the second only 60, the next 80 etc.etc.
    Is there a way to create a external table on this file?
    Thanks in advance.

    alter the source is no option, unfortunalty. But is suggested there would be a sensible workway to handle it. An to solve it I want to pivot i, but first I think I need to have the file in Oracle through a external table.
    Edited by: Jonathan Wisgerhof on Mar 31, 2009 12:21 PM

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • How to create a password for the pdf file

    In Adore Acrobat XI, how to create a password for the file? The help states going to Tools Menu and clicking on Protection tab - but there is no such option. In the file - properties - security screen, it shows the security details but does not allow to edit it.

    I think you may be mixing up two different products: Adobe Reader (free), and Acrobat ($$).

  • Index - How to create an index for multiple InDesign files?

    Hi everyone,
    I'm using InDesign CS2 to create a 250 page catalogue. Most of it is finished now, and I've come to creating the index.
    The catalogue is spread over about 10 InDesign files. How do I create an index for this? No paragraph styles were set up when it was started, but there are character styles.
    I've done some searching - does it need to be booked so I Can index? And can I book it without paragraph styles?
    (I've only been using InDesign for about a year, mostly self taught.)
    Thanks in advance :)
    Naomi

    Creating a book from your files should be no problem at all. ID does
    i not
    synchronize styles across documents -- unless you order it to! (That's what the checkboxes at the left of the book documents are for. Do Not Use, in your case.)
    The Index function itself is book-savvy, but you might want to search this forum for a few recurring problems.

  • Dynamic Resource name for Excel/csv files

    Hi All,
    Reading from a source excel (as well as csv) file, I tried passing the resource name via a variable which is set to contain the name of the file (refresh). However, on execution, the file name shows up with an additional "\" character without being specified in the variable text causing the interface to face on load step.
    The error says:
    ODI-1227: Task SrcSet0 (Loading) fails on the source FILE connection <ConnNameHere>.
    Caused By: java.sql.SQLException: ODI-40438: File not found: C:\DirectoryNameHere\ /OTD.
    Is this expected behavior where one needs to escape the special character?
    I've verified that the extra / is not present in either the variable value or the directory for the Physical Schema.
    TIA.

    http://youtu.be/-QMV6cElgsk
    http://youtu.be/V7OzzZ3kYdc
    http://youtu.be/hNqqbZ4sJWA
    http://youtu.be/TMHzhtEwgrA
    http://youtu.be/REJDi584jh8
    http://youtu.be/jE6k5OfWqi0
    http://youtu.be/P3EKyykseps
    http://youtu.be/-QMV6cElgsk
    http://youtu.be/Gl7YvZohVVA
    http://youtu.be/zb1ue5BP9mI
    http://youtu.be/NhPDcc8n4VU
    http://youtu.be/tD_kw5QXmps

  • Schema advice for huge csv file

    Guys, I need an advice: Huge csv file (500 millions rows) to load in a table and I did. But now I need to alter the columns (they came all as varchar(50)). I'm just change one column and it's taking age...what kind of schema should I adopt? So far I applied
    a simple data flow but I am wondering if I should do something like:
    drop table
    create table (all varchar)
    data flow
    alter table
    No sure about

    Is this a once off/ad-hoc load or something that'll be ongoing/BAU?
    If it's ongoing then Arthur's post is the standard approach.
    create a staging table with varchar(50s) or whatever. Load into that, then from that staging table go into your 'normal' table that has the correct column types.
    If it's a once off, what I'd do is create a new table with the correct data types. Do a bulk insert from your table with 500mil rows.
    then drop the old table and rename the new table.
    Converting the columns in your 500mil table one by one is going to take a very long time, it'll be faster to do one bulk insert into a table with the correct schema
    Jakub @ Adelaide, Australia Blog

  • Creating tree (JTree) for showing directories/files

    Hi All,
    I need to create a JTree that show all files and directories in my computer. I know to create a simple tree, but I don't know how to access files...
    Does somebody know a code to do it?
    thanks,
    Inbal

    I know to create a simple
    tree, but I don't know how to access files...See java.io.File

Maybe you are looking for

  • Free of charge pricing

    Hi, S.O net value is zero for Free material by using R100 condition type client need selling price value to be posted in Sales revenue account and R100 value in Discount account but system not generating accounting doc. Error : For zero net value acc

  • DNS Resolution Totally Dead in 10.6.7 (except dig)

    My problem, on a 2010 iMac running 10.6.7, is basically identical to Andreas's in this thread, but whereas he tracked it to "the VPN client SonicWall NetExtender" and solved it, I've never even heard of that. As with him, though, the only way I seem

  • Automatic notification for Timesheet due date in ESS

    Hi, Is there any configuration available to implement in automatic notification to users ESS CATS Timesheet saying that your timesheet submission is due. The notification should go a day before the due date and only to users who has not submitted the

  • When i am installing any apps or thems in E61i tha...

    iam using NoKIA E61i.why i install any new app or thems form mobile9 or anywhere while installing error occur that content certificate expired.it comes to all app while installing.why it sooo

  • My new iphone 6+ very very slow charging. 6% increasing in 1 hour charging.

    My new iphone 6+ very very slow charging. 6% increasing in 1 hour charging.