creating CSV files - output contains comma - work around?

Greetings,

It is:

Is there a way to bypass the databases containing commas

When you create csv files?

I have the process down to create a .csv file and stored on the server and

or by e-mail to go out. The problem I have is that one of the db fields being withdrawn

the database has a comma in there and so cause problems for me in

creation of the csv file.

Fields of DB:

-emp_number

-emp_name (name, first name)

-activity_code

-report_date

-time_total

When the file is created it recognizes the comma in the emp_name field

and separates the name and surname and creates separate

columns for them in the CSV files that do not match with the db field

names in the row 1 of csv.

I already searched the forum to see if this has been asked before. Or the other

my eyes is too crossed everyone reading or I'm not in the

appropriate search criteria.

Any help will be greatly appreciated.

Leonard

double quotes the data part.

Tags: ColdFusion

Similar Questions

  • Try to save a copy of the contacts and emails in windows live to get the error cannot create .csv file

    Try saving a copy of contacts and emails in windows live to get the error can not create .csv file any help appreciated.

    First create new folders to the location where you want it on a local hard drive. Then use the Browse button in the Export Wizard to navigate to the files you created. Once the export is complete, copy the files to their final destination.

    Windows Live products and services are not covered by these forums. You will find support, solutions and forums for them to the Windows Live Solution Center. When you ask a question here, you should give your version of the software, because the answers vary depending on the version. In WLMail to find, has press on ALT - H. If it doesn't show you the version and the build number, press on escape to two times, and then Alt - F B.

    Noel

  • ODI - products .txt or .csv file output

    Hi guru,.

    I'm new on ODI and have hit a problem with that I hope someone could help me!

    I have a chart / MS SQL data store (2005), I would use ODI to produce a .txt or .csv file output. I have looked at the documentation, but I couldn't find an obvious way to do it - can someone please advise how this can be done?

    Thank you very much
    Joe

    Hey Joe,

    Here is a link to a 'for example Oracle' explaining how to load a flat file:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/ODI/odi_11g/odi_project_ff-to-FF/odi_project_flatfile-to-flatfile.htm

    You just need to change the LKM to choose one for MS SQL.

    Kind regards
    Jerome

  • create CSV file

    Hello friends,

    I want to generate .csv file. & write data inside.

    can someone suggest so any idea for it?

    Thank you & best regards

    Milan

    Try this...

    DataOutputStream os = null;
    FileConnection fconn = null;
    String FileName = "sample.csv;
    try {}
    fconn = (FileConnection) Connector.open ("file:///SDCard/BlackBerry/" + name of file, Connector.READ_WRITE);
    If (! fconn.exists ())
    fconn. Create();
    OS = fconn.openDataOutputStream ();
    String Contact_Title = "First name, family, Email1, Email2, organization, title, such work \n";
    OS. Write (Contact_Title.GetBytes ());
    } catch (Exception e) {}
    System.out.println ("Con:" + e.getMessage ());
    } {Finally
    try {}
    If (null! = os)
    OS. Close();
    If (null! = fconn)
    fconn. Close();
    } catch (IOException e) {}
    System.out.println (e.getMessage ());
    }
    }

  • Create CSV file with headers

    I have a process that creates an Excel page APEX. Works very well, but how do you add in column headers, so that they appear in Excel?

    Thank you

    BEGIN
    -Set the MIME type
    owa_util.mime_header ("application/octet", FALSE);
    -Place the name of the file
    HTP.p ('Content-Disposition: attachment; filename = "SDU.csv" ');
    -Close the HTTP header
    owa_util.http_header_close;
    -To loop through all the rows in the EMP
    FOR x in get_students LOOP
    HTP. PRN(x.Administration ||) ',' ||
    x.last_name | ',' ||
    x.first_name | ',' ||
    x.MI | ',' ||
    'Y' || Chr (13));
    END LOOP;
    -Send an error code while the rest of the HTML code does not
    htmldb_application.g_unrecoverable_error: = true;

    bobmagan wrote:
    So, the first line in the file will become the headers? Right now, the 1st line of data is not displayed as an Excel headers.

    Then add headers before the loop:

        -- Set the MIME type
        owa_util.mime_header( 'application/octet', FALSE );
        -- Set the name of the file
        htp.p('Content-Disposition: attachment; filename="SDU.csv"');
        -- Close the HTTP Header
        owa_util.http_header_close;
        -- Excel header
        htp.prn('administration,last_name,first_name,mi,"Yes/NO"' || chr(13));
        -- Loop through all rows in EMP
        FOR x in get_students LOOP
          htp.prn(x.administration || ',' ||
                  x.last_name || ',' ||
                  x.first_name || ',' ||
                  x.mi || ',' ||
                  'Y' || chr(13)
                 );
        END LOOP;
    

    SY.

  • CSV file output!

    Hello, I have a work select the statement and I try to adapt an old output CSV file I've used before, but I get the following error:

    SQL > @$ ORBEXE/sup.sql
    TYPE wk_tab IS TABLE OF read_input % ROWTYPE
    ***
    ERROR on line 98:
    ORA-06550: line 98, column 4:
    PL/SQL: ORA-00933: SQL not correctly completed command
    ORA-06550: line 8, column 1:
    PL/SQL: SQL statement ignored

    There is probably a little more errors, but it start with this one.

    Thank you CP
    DECLARE
    
         v_count NUMBER(10) := 0;
    
         EXEC_file UTL_FILE.FILE_TYPE;
       CURSOR read_input
       IS
    SELECT COALESCE(ilv1.btr_pla_refno,ilv2.pla_refno,ilv3.PLP_PLA_REFNO) refno,  ilv1.par_per_surname, ilv1.adr_line_all, ilv1.description, ilv1.SCHEME_NO, ilv1.btr_cpa_cla_refno, ilv1.susp
    ,ilv2.pla_par_refno,  ilv3.PLP_BAK_ACCOUNT_NUMBER
    FROM (
    select distinct benefit_transactions.btr_cpa_cla_refno
                         ,parties.par_per_surname
                   ,addresses.adr_line_all
                   ,rbx151_schemes_data.description
                      ,rbx151_schemes_data.SCHEME_NO
                   ,btr_pla_refno
                      ,nvl2 (claim_parts.cpa_suspended_date, 'Y', 'N')        AS SUSP
      from fsc.address_usages
          ,fsc.address_elements
          ,fsc.addresses
          ,fsc.parties
          ,fsc.properties
          ,claim_periods
          ,benefit_transactions
          ,rbx151_schemes_cl
          ,rbx151_schemes_data
          ,claim_roles
          ,claim_property_occupancies
            ,claim_hb_payment_schemes
            ,claims
              ,claim_parts
     where address_elements.ael_street_index_code = addresses.adr_ael_street_index_code 
       and addresses.adr_refno = address_usages.aus_adr_refno 
       and properties.pro_refno = address_usages.aus_pro_refno 
       and properties.pro_refno = claim_property_occupancies.cpo_pro_refno 
       and rbx151_schemes_cl.scheme_no = rbx151_schemes_data.scheme_no 
       and claim_roles.cro_crt_code = 'CL'
       and claim_roles.cro_end_date is null
       and claim_periods.cpe_cpa_cla_refno = claim_roles.cro_cla_refno 
       and parties.par_refno = claim_roles.cro_par_refno 
       and claim_property_occupancies.cpo_cla_refno = claim_periods.cpe_cpa_cla_refno 
       and claim_property_occupancies.cpo_cla_refno = benefit_transactions.btr_cpa_cla_refno 
       and claim_periods.cpe_cpa_cla_refno = benefit_transactions.btr_cpa_cla_refno 
       and benefit_transactions.btr_cpa_cla_refno = rbx151_schemes_cl.claim_no 
       and claim_roles.cro_cla_refno = claim_property_occupancies.cpo_cla_refno 
       and claim_periods.cpe_cpo_pro_refno = rbx151_schemes_cl.pro_refno 
       and claim_periods.cpe_cpa_cpy_code = 'HB'
       and claim_periods.cpe_cps_code = 'A'
       and claim_periods.cpe_cpa_cpy_code = benefit_transactions.btr_cpa_cpy_code 
       and rbx151_schemes_cl.claim_no like '406%'
      -- and benefit_transactions.btr_cpa_cla_refno = '307801231'
    --   and parties.par_per_surname is not null
       and claim_property_occupancies.cpo_pro_refno = rbx151_schemes_cl.pro_refno 
       and claim_periods.cpe_cpa_cla_refno = claim_parts.cpa_cla_refno   --MORE ADDED CODE!!
       and claims.cla_refno = claim_hb_payment_schemes.chp_cla_refno  --ADDED CODE!!!
       AND claims.cla_refno = claim_roles.cro_cla_refno  --ADDED CODE!!!
       and (claim_hb_payment_schemes.chp_pty_code ='CL' or claim_hb_payment_schemes.chp_pty_code ='LL') --ADDED CODE
       and claim_periods.cpe_created_date = 
              (select max(c2.cpe_created_date)
                 from claim_periods c2
                where c2.cpe_cpa_cla_refno = claim_periods.cpe_cpa_cla_refno 
                  and claim_periods.cpe_cpa_cpy_code = c2.cpe_cpa_cpy_code )
       and claim_property_occupancies.cpo_created_date =
              (select max(cp2.cpo_created_date) 
                 from claim_property_occupancies cp2
                where cp2.cpo_cla_refno = claim_property_occupancies.cpo_cla_refno)
       and benefit_transactions.btr_created_date =
              (select max(b2.btr_created_date)
                 from benefit_transactions b2
               where b2.btr_cpa_cla_refno = benefit_transactions.btr_cpa_cla_refno)
      and claim_parts.CPA_CREATED_DATE =
              (select max(c1.CPA_CREATED_DATE)
                 from claim_parts c1
               where c1.CPA_CREATED_DATE = claim_parts.CPA_CREATED_DATE)) ilv1
    full outer join
    (select            private_ll_accounts.pla_refno,
                 private_ll_accounts.pla_par_refno
       from        private_ll_accounts 
      where  private_ll_accounts.pla_created_date =
              (select max(p2.pla_created_date) 
                from private_ll_accounts p2
              where p2.pla_refno = private_ll_accounts.pla_refno 
                 and private_ll_accounts.pla_refno = p2.pla_refno (+))) ilv2
                ON (ilv1.btr_pla_refno = ilv2.pla_refno)
    full outer JOIN
    (select distinct private_ll_pay_schemes.PLP_PLA_REFNO, private_ll_pay_schemes.PLP_BAK_ACCOUNT_NUMBER
    from   private_ll_pay_schemes
     where  private_ll_pay_schemes.PLP_START_DATE =
             (select max(p1.PLP_START_DATE) 
                from private_ll_pay_schemes p1
               where p1.PLP_PLA_REFNO = private_ll_pay_schemes.PLP_PLA_REFNO
                 and private_ll_pay_schemes.PLP_PLA_REFNO = p1.PLP_PLA_REFNO (+))) ilv3
    ON (ilv2.pla_refno =ilv3.PLP_PLA_REFNO)
    WHERE (ilv1.par_per_surname IS not NULL)
    --or ilv1.btr_pla_refno IS NULL and ilv3.PLP_PLA_REFNO IS NOT NULL)
    --and ( -- OR ilv2.pla_refno IS NOT NULL OR ilv3.PLP_PLA_REFNO IS NOT NULL);
    
       TYPE wk_tab IS TABLE OF read_input%ROWTYPE
          INDEX BY PLS_INTEGER;
    
       wk   wk_tab;
    BEGIN
    
       exec_file := utl_file.fopen('/spp/spool/RBlive/rr_output', 'sup.txt', 'W');
    
       OPEN read_input;
    
       LOOP
          EXIT WHEN read_input%NOTFOUND;
    
          FETCH read_input
          BULK COLLECT INTO wk LIMIT 100;
    
          FOR i IN 1 .. wk.count
          LOOP
         
         v_count :=0;
    
             utl_file.put_line(exec_file, wk(i).refno||','||wk(i).par_per_surname||','||wk(i).adr_line_all||','||wk(i).description||','||wk(i).SCHEME_NO||','||wk(i).btr_cpa_cla_refno||','||wk(i).susp||','||wk(i).PLA_PAR_REFNO||','||wk(i).PLP_BAK_ACCOUNT_NUMBER);
    
    
    
          END LOOP;
       END LOOP;
    
       CLOSE read_input;
    
       utl_file.fclose(exec_file);
    END;
    /

    Hello

    Given that you have commented this line:

    --and ( -- OR ilv2.pla_refno IS NOT NULL OR ilv3.PLP_PLA_REFNO IS NOT NULL);
    

    You're cursor definition is no longer ended with a semicolon;

    Concerning
    Peter

  • Commands\Create AIR File\Preview does not work in Fireworks CS4

    I'm working on a video of LYNDA for Fireworks CS4 training and I try to preview one of the exercises, according to the instructions. If I click on Preview in the dialog box create AIR file, nothing happens. Any thoughts on why it doesn't work? Thank you.

    Hmm, well, that's weird! lol I would extract the file and see if something went wrong...

    Jim Babbage

  • REF Cursor creating CSV files

    Hi guys

    I am writing a package to create several different CVS files of the database.
    I created a procedure for each files CVS to be created within the package.
    I set the cursor for each file to each intervention.
    Read slider and concatenate all the fields in a large chain of recording and write it to the file using the UTL_FILE utility.

    Is there a way I can create a common procedure and pass all other cases, file_name as a parameter and concatenate all the fields and records and write it to the file? I think the use of the REF cursor, but the problem is the cursor query is different for each file. Some files has 2 columns and some 200 columns.
    No idea how to make this work for any format?

    Your help will be very appreciated.

    Thanks and greetings

    Vijay

    Here is a generic procedure, I used for my part in the past...

    As user sys:

    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    /
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /
    

    As myuser:

    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      --
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    

    This allows the header line and the data to write into files separate if necessary.

    for example

    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    
    PL/SQL procedure successfully completed.
    

    Output.txt file contains:

    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
    

    The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.

    Adapt to the exit of styles and different types of data are needed.

  • I created CSV file and want to read a particular item in the file of my vi

    I use file read for the first time and created this vi. But I can't read part 4 of the file, so I can show the image given of the value 4. Could someone check my VI and tell me where I was wrong

    (1) you must specify the delimiter as a comma.

    (2) today, it is 18.  4 is the 17th day of June.

  • Need help importing CSV file with commas in the rest of the data

    I have a linux script that gets the CSV files from a remote server and import the data into a table using SQLLoader.

    The problem I have is that the data in the CSV files sometimes contains commas in the text field that is interfering with the import and I have no control over what is in the file.

    my table:

    Create the table my_tab
    * (TIME_STAMP date, *)
    REQUEST_IP varchar2 (30),
    User_id varchar2 (30),
    FACILITY_ID VARCHAR2 (255),
    Number SUBFACILITY_ID,
    DETAIL VARCHAR2 (255)
    *);*

    example of a CSV file:

    * 27032011 story 232708,162.108.20.61,user123,cstmr_view_hlr_history,0,Viewed with 10 results per page for 1234567890 *.
    * 232737,162.108.20.61,user123,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 232744,162.108.20.76,user123,cstmr_add_gprs,0,Facility 27032011 [Add x] selected *.
    * 232759,162.108.20.94,user456,cstmr_hlr_request,0,Facility 27032011 [x orders] selected *.
    * 27032011 added 232806,162.108.20.94,user123,cstmr_hlr_request,2,Customer note: note [x], MSISDN [1234567890] *.
    * 232806,162.108.22.96,user789,cstmr_hlr_request,0 27032011, queue update: Action [46], IMSI [1234567890] old [, MSISDN IMSI [1234567890] *.
    * 232815,162.108.20.67,user789,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 27032011 232822,162.108.20.67,user123,cstmr_view_customer,5,Screen ' display customer details ': MSISDN [1234567890] *.
    * 27032011 232702,162.108.20.57,user456,cstmr_hlr_request,0,Queue update: Action [45], IMSI [1234567890] old [, MSISDN IMSI [12345678901], AFN [], [PDPREC] *.
    * 27032011 connection 232825,162.169.22.108,user456,adm_login,1,Successful: user [user_name] *.
    * 232829,162.169.22.108,user456,cstmr_view_customer,0,Facility 27032011 [display] selected *.

    How can I get around the commas in the text?

    Published by: cinnamon on April 4, 2011 08:07

    There is a way to do it, but it depends on a few assumptions, and (b) you have to jump through hoops to do it.

    First of all, this only works if there is no comma request_id, user_id or facility_id. (if there is, then you're stuck, because there is no way to determine which commas are part of data and those that are separators.)

    Second, he must know if there are any particular character - say | -who never appears in the detail.

    If you can do both of these assumptions, then what you have to do is:
    (1) create an array that consists of a single VARCHAR2 column large enough to hold longer line of your input data.
    (2) to import your data into this table.
    (3) replace the first five commas in each row of the table with. (or whatever your "unused" character).
    For example:

    UPDATE temp_data_table
    SET row_text = REPLACE(SUBSTR(row_text, 1, INSTR(row_text, ',', 1, 5)), ',', '|') || SUBSTR(row_text,  INSTR(row_text, ',', 1, 5) + 1);
    COMMIT;
    

    (4) write a SQL INSERT command to build your target table according to the values separated by the | characters.

    -Don

  • Configure vswitches from a .csv file - problem

    I have a script that works very well for the installation of my virtual past by using the updatevirtualswitch method. (Thanks to LucD, see here: ) http://communities.VMware.com/message/1556669#1556669 )

    I now want to go further and to feed my script with variables from a .csv file.

    It works fine for all, with the exception of the definition of vmnic. Description of the problem:

    Excerpt from my .csv file:

    lannics; dmznic1; dmznic2; dmznic3; storagenics; vmotionnics;

    @("vmnic0"); @("vmnic1", "vmnic2");

    Then import the settings from the csv file, example:

    $lannics = $parameterfile.dmznic1

    Now, if I check what's in $dmznic1, I have the good: @("vmnic1", "vmnic2")

    But it seems to be a string, not a true table. Therefore, I can not pass it to my updatevirtualswitch function:

    function standardvswitch {}

    Param ($esx, $vs, [string []] $dmznic1)

    ....

    $ns. UpdateVirtualSwitch ($vs, $vsSpec)

    }

    So the question is: how could I get my .csv file information, so that it can be used for a definition of vmnic compatible with the UpdateVirtualSwitch method?

    Thanks for your help or ideas!

    I've done a few tests more and saw that my previous solution does not work. "But one that follows). I'll try to explain how it works. In the .csv file, a semicolon is used as a field separator. This means that you can use a comma in a field to separate the members of the group. The Import-CSV cmdlet reads the .csv file and - separator "," parameter instructs the cmdlet that a semicolon is the field delimiter. The output of the Import-CSV cmdlet is piped in a ForEach-Object cmdlet. In the scriptblock ForEach-Object according to the value of the dmznic1 property string is shared by the comma, so each string before, between and after the comma will become a member of separate table. This table is assigned to the dmznic1 property. Loop loop through all the members of the Group and displays them on separate lines. So you can see that it is really a picture.

    Import-CSV -Path LanNics.CSV -Delimiter ";" | `
    ForEach-Object {
      $_.dmznic1 = ($_.dmznic1).split(",")
      for ($i=0;$i -lt $_.dmznic1.length; $i++) {
        Write-Output $_.dmznic1[$i]
      }
    }
    

    See the attached screenshot for output.

    I think that this solution is more beautiful that create a different column for each vmnic because in my solution you don't have to know in advance how many cards you have.

    Post edited by: RvdNieuwendijk

  • cannot paste copied from CSV files online entered into the Excel worksheet (chatted with Cedric_L on 03/05/10 at approximately 2.30 CST but I got disconnected. not got an answer...)

    Here is the transcript of a chat with Firefox community member zzxcon may 3/10

    Now you are chatting with Firefox community member Cedric_L
    Cedric_L: Hello
    Cedric_L: what happens when you try to download a .csv file?
    Seegal: Hello
    Seegal: it is not copy
    Cedric_L: how you try to copy?
    Seegal: pls bear with me, I'm a slow typist. Just copy the selected text
    Biolizard joined the conversation.
    Cedric_L: ok - you choose what text?
    Seegal: I reconcile my checkbook (worksheet in this way). I copy my bank acc online items and paste it in the worksheet
    Seegal: I use Firefox 2.0.0.19. Have no problem to do so.
    Cedric_L: what version of Mac OS X?
    Seegal: in the new version nothing happens when trying to paste - just doesn't add up
    Cedric_L: Firefox 2.0.0.x is no longer supported and has not been supported by more than a year
    Cedric_L: paste into Excel from Firefox?
    Seegal: Sorry, I'm early... 2.0.0.19
    Seegal: Yes. I opened my bank acc in Firefox
    Cedric_L: what version of Excel?
    Cedric_L: it would really help if you could tell me step by step what you do.
    Seegal: first re: your previous question: is OS 10.4.11
    Seegal: on Excell: it' ACE 2004 version - the lasat one product for Macs. The specific version is 11.3.7
    Seegal: so I opened my ACC. to bank online in Firfox (my main browser). I copy the last entry in the account and paste in my Excel spreadsheet.
    Cedric_L: so, you copy directly from the web page without having to download a CSV file?
    Seegal: what do you mean by CSV file download? I could export to the https://chat-support.mozilla.com:9091/webchat/getimage? image = sendmessage & workgroup=support%40workgroup.chat-support.mozilla.comFirefox to the CSV file, but the other way around?
    Cedric_L: you copy your bank statement directly from the web site to Excel by using the Clipboard?
    Seegal: so do not use the Clipboard. It is a mac. There is no need to do so. In the PC, it would be Yes.
    Cedric_L: I need to know the exact steps that you deliver to bring in excel
    Cedric_L: and I need to know what exactly goes wrong in the latest version of Firefox.
    Seegal: you have a mac it with Firefox and Excel? It is very easy to reproduce. Imagine you open access to online banking, select a few entries, click on 'copy', to make your already open Excel worksheet and click "Paste". That's all!
    Cedric_L: when this happens, do you have cryptic code pasted into Excel?
    Seegal: as I said before: in all newer versions starting with 3.0 when I go to Excel to 'stick' of my bank acc, nothing happens. It does not stick. No, I don't get a cryptic code pasted, just NOTHING.

    Cedric_L: what happens if you paste into MS Word instead?
    Seegal: haven't tried, most likely the formatting would be lost. Tried with an another el Exc spreadsheet-it lost all the formatting and pasted as continuous text.

    This has happened

    Each time Firefox opened

    Is copy of the cat above. THIS MAC OS X. In the older versions before 3.0 I could copy the CSV file on the site Web Ibank VAC) and paste it directly to my spreadheet Excel reconciling my account.

    There is a known issue with Mac Office versions prior to 2007 version that results in release of Clipboard does not correctly supported. Firefox 3.0, being a more recent application, using the new format for the HTML Clipboard data. Unfortunately, Office 2004 and Office X do not support this.

    If you upgrade to MS Office 2007, it should work as expected.

  • Segmentation of a huge CSV file for easier analysis

    I have a CSV file that contains 3 columns: time, voltage and current.  This data covers a period of 12 days with 1 ms between the samples and the size of the file is 53.4 GB!

    I use LabVIEW to chunk this file into pieces easier to manage for analysis using spreadsheet File.vi reading and write a File.vi spreadsheet and my method works very well... to a point.  Here's a snippet of what I do:

    I use the "start offset reading" of entry to reading worksheet File.vi inch my way through the file, but since it is a type of data I32 it rolls more and VI out errors.  I think I have to do, is remove pieces of the main file that I read and write in their respective smaller file, but the method to do this is me stumping.  Y at - it suggestions on how I could pull this off while using the worksheet vi file (to avoid reinventing the wheel as much as possible)?

    Some ideas: I'm playing:

    1. of iteratively, delete data and reset to '0' marker in the file (reading data in order from the present to the future).

    2. start at the END of the file (i.e. read data from future to present) and iterative set the smaller size, eliminating the data blocks that I will.

    The simplest solution would probably be to modify the existing worksheet screws (or a copy you make of them) - you did, they use 32-bit values to track the location, but if you look inside the screw, you should see that the actual file functions use 64-bit values (the values of 32 bits in the functions are actually used for backward compatibility). I haven't looked closely, but my guess is that you can simply change this option to be 64 bit and that your code should then be able to go through the entire file.

  • Question: Can't create ZIP files in Windows 7 Home Premium

    So, basically, here's the deal.  Whenever I try to make/create a file ZIP containing separate files or even containing a single file, I get an error message.

    "Could not complete the operation.  Access is denied. "

    I am the administrator and I should have complete and total control right?  I need to create folders zip for the work, but the only way I can do right now is with WinRAR, which works very well, but I don't want to pay $40 more for something that I should be able to do that through Windows.

    Anyone have thoughts or ideas on why I can't make ZIP (compressed) files?

    Help!

    in regards to the third task... There is no merge option when you right click on it from the desktop.

    I guess only he saved for you with the .txt extension. Just rename the .reg file, but...

    On the previous message and the 2nd task, try this:

    1. Press the Windows key + R > type regedit and press enter
    2. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\OpenWithProgids
    3. In the right pane: right-click on the WinRAR.ZIP > delete
    4. You can also check these two keys:
      • HKEY_CLASSES_ROOT\.zip\OpenWithProgids (there should be only (default) and CompressedFolder )
      • HKEY_CLASSES_ROOT\.zip\UserChoice (this should not exist)
    5. Close the registry editor and restart your system.
  • VM list name and the cluster that it flows in a CSV file

    Hello

    I want to have a created CSV file that will conaitn 2 fields: vm_name, vm_custer

    Which means, I want to list the name of the virtual machine and the cluster is running in a CSV file.

    Here is the code I wrote:

    #! / usr/bin/perl - w
    use strict;
    Use Data::Dumper;
    use VMware::VIRuntime;
    My % opts = (data center = > {})
    Type = > "s =",
    help = > 'enter the name of the data center. "
    required = > 1,
    });
    OPTS::add_options (%OPTS);
    OPTS::parse();
    OPTS::Validate();
    Util::connect;
    "open (my $FH, ' > ', 'final.csv') or die" cannot opne final.csv: $! » ;
    print $FH 'VM_Cluster, VM_Name, \n ";
    my $dc = Opts::get_option ("data center");
    My $dc_view = Vim::find_entity_view (view_type = > 'Data center',)
    filter = > {name = > $dc});
    My $clu_views = Vim::find_entity_views (view_type = > "ComputeResource")
    begin_entity = > $dc_view);
    my $cluster foreach (@$clu_views)
    {
    My $clu_name = $cluster-> name;
    my $hosts = $cluster-> host;
    foreach (@$hosts)
    {
    My $host_hash_ref = Vim::get_view (mo_ref = > $_);
    My $vm_view = $host_hash_ref-> virtual machine;
    foreach (@$vm_view)
    {
    My $vm_hash_ref = Vim::get_view (mo_ref = > $_);
    My $vm_name = $vm_hash_ref-> name;
    $FH print $clu_name. ", ".  $vm_name. », «. "\n" unless $clu_name = ~ m/0bld0 /; "
    }
    }
    }
    Close ($FH);
    Util::disconnect;

    Now, I get the CSV file created as I wanted to, but the question is, there are 3500 + VMs in vCenter and this script side took 50 minutes to complete. It is therefore a huge performance impact. Also, I don't like the concept of 3 layers netsted foreach loops.

    Therefore, there is an effective way to get this information?

    Thank you.

    Your welcome.  It could be made faster, but the complexity of the additional code is probably not worth if the runtime you have now is enough.  No doubt, you can add additional data to your report without too slow.

    You can also find the script works faster or slower depending on what is happening in your virtual center system.

    Thanks for the update on the success!

Maybe you are looking for

  • IOS 9.3 Camera Roll: No GPS in even if 'rental' EXIF data is on

    Hello I wonder why all my photos don't have all GPS data in EXIF even if 'Camera roll' is enabled in "location Service. Any tips? EXIF: Header 1 ExifTool Version number: 10.25 File type: JPEG Extension of file Type: jpg MIME type: image/jpeg JFIF Ver

  • License key free v2 content browser

    All, From your comments, we are launching for a limited time, the license key free for the Navigator content v2 https://www.sonycreativesoftware.com/campaign/contentbrowser Concerning Peter

  • Battery TECRA 9100 - NMI Error MESSAGE problem

    Hello I wonder if anyone can help me please. So what about the battery power, afer, start the system and after some time, a blue screen appears with HARDWARE MALFUNCTION CHECK THE SELLER NMI: I/O VERIFY ERROR or something like that... Anyone help is

  • Need to sign for Satellite A210-127

    I could not find on the site all information how buy parts for laptops.I need to buy the new Panel because it is a litle bit damadged. My question is: where can I get parts for laptop, in particular the Panel?

  • startup programs do not work and windows Defender is disabled (error code is0x800106ba)

    I can't turn on windows defender and the error message is (windows Defender encountered an error: 0x800106ba.) A problem caused this program service stop. restart the service to start your search in Help and support or your computer how to start a se