Reg..csv file as input parameter in sqlloader

Hi,
I have .ctl file. every time i received the file name in diff name.
rather than hardcode file name i wants to take .csv file as input parameter plesase do help in this.
here is the code..
OPTIONS (SKIP = 1, BINDSIZE=100000)
LOAD DATA
CHARACTERSET WE8ISO8859P1
INFILE '/WOAU1/bkp/pgp_masterkey.csv'
BADFILE '/WOAU1/bkp/pgp_masterkey.bad'
DISCARDFILE '/WOAU1/bkp/pgp_masterkey.dsc'
Thanks
Atul

A better alternative would be to avoid using SQL*Loader and instead use External Tables for which you can use an ALTER TABLE statement to change the LOCATION of the table (which details the filename). (A valid reason for using EXECUTE IMMEDIATE in PL/SQL). That way you keep all your control inside the database and you're not messing about with o/s scripts to pass different parameters to an external program.

Similar Messages

  • IMPORTING 3 CSV FILES AS INPUT WITH BROWSE BUTTON COMPARING 3 CSV FILES

    I HAVE 3 .CSV FILES WHICH ARE MY INPUT
    1. TRUE FILE
    2. LIMIT FILE
    3. REFERENCE FILE
    I want to compare limit file and true file and delete some columns from true file and for rest of the columns calculate mean,standard deviation how do I approach the problem

    if possible, best thing would be bring the contents to staging tables and do comparison in sql. This would have the advantage of ability to apply set based logic and would be much better from performance perspective rather than trying to do this directly
    from the file.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Csv file as input?

    Hello,
    I have and csv file with voltages. Now I would like to read this CSV file with an LabView programme and send the voltages to an analog output of a DAQ Card. (Each microsecond one Voltage value)
    Is that possible?
    regards
    doctorbluex

    Read your file using "read from Spreadheed file" and wire a comma as delimiter. (Transpose if needed).
    You'll get an array that you can use for any purpose (display in a graph, send to AO, etc.). Just slice out the desired row or column.  
    LabVIEW Champion . Do more with less code and in less time .

  • Reg. csv file upload

    Hi,
    In my source file i have a single product name as "a,b". But when i try to upload, it is not happening and throwing error.
    Please can anyone help me?
    Thanks,
    Madhu

    Hello,
    Take a look at the 'Optionally Enclosed By' option when you upload your file, since your text contains a comma you might want to enclose the strings by quotation marks and then use the Optionally Enclosed By to allow APEX to parse each string individually.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • Importing several CSV files into Excel

    Hello Everyone,
    I managed to piece together this code which runs several powershell scripts that each output a CSV for every day of the week.
    Next, I located a function that takes a CSV file as input and exports that as a worksheet in an Excel document.
    My problem is, the last column in the Excel file should be the first column and I just cannot spot why this behavior is occuring.
    #First phase, output CSV files used later in the script.
    Monday.ps1
    Tuesday.ps1
    Wednesday.ps1
    Thursday.ps1
    Friday.ps1
    Saturday.ps1
    Sunday.ps1
    #Now the function to export the CSV from Phase 1 into an Excel Spreadsheet.
    function Export-Excel {
    [cmdletBinding()]
    Param([Parameter(ValueFromPipeline=$true)][string]$junk)
    begin{
    $header=$null
    $row=1
    process{
    if(!$header){
    $i=0
    $header=$_ | Get-Member -MemberType NoteProperty | select name
    $header | %{$Global:ws.cells.item(1,++$i)=$_.Name}
    $i=0
    ++$row
    foreach($field in $header){
    $Global:ws.cells.item($row,++$i)=$($_."$($field.Name)")
    $xl=New-Object -ComObject Excel.Application
    $wb=$xl.WorkBooks.add(1)
    $Global:ws=$wb.WorkSheets.item(1)
    $Global:ws.Name='Sunday'
    import-csv 'C:\Sunday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Saturday'
    import-csv 'C:\Saturday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Friday'
    import-csv 'C:\Friday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Thursday'
    import-csv 'C:\Thursday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Wednesday'
    import-csv 'C:\Wednesday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Tuesday'
    import-csv 'C:\Tuesday.csv' | Export-Excel
    $Global:ws=$wb.WorkSheets.Add()
    $Global:ws.Name='Monday'
    import-csv 'C:\Monday.csv' | Export-Excel
    $xl.Visible=$true

    That is interesting considering this script I found on Hey Scripting Guy.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/09/copy-csv-columns-to-an-excel-spreadsheet-by-using-powershell.aspx
    I have run your version above and have no issues with order. 
    I still recommend using WorkBook.OpenText($csvfile)
    and
    $wb.Sheets($csvfile).Move($wb2.Sheet(1))
    This is much faster and takes much less code.
    ¯\_(ツ)_/¯
    Could you give a terse example?  I'm trying to put something together but am not having much success.
    $sheets = @(LS D:\Scripts\work | select FullName -ExpandProperty FullName)
    $Excel = New-Object -ComObject excel.application
    $Excel.visible = $false
    $file = $Excel.Workbooks.Open("C:\tmp\mytest.xlsx")
    #$wb2 = $file.Sheets
    for ($i=0; $i -lt $sheets.length; $i++)
    $workbook = $Excel.WorkBooks.OpenText($sheets[$i])
    $workbook.Sheets($sheets[$i]).Move($file.Sheet(1))
    $Excel.visible = $true

  • Help me in creating a Device Collection - i have a list of machine name (in a excel or CSV file)

    Hello Guys,
    I have created a Device collection for UK region (2000+ machines)
    Now i have been given a list of 1000 machines to which i need to deploy an application.
    I have to create a device collection for this 1000+ machines. as an input i have a excel or CSV file with a list of machine names.
    Please suggest me how can i create a device collection with CSV file as input. Is my CSV file should be in particular format.
    Or is there any other way i can create a collection for this 1000 specific machines.
    Please suggest.

    My previous post was for sccm 2012.
    here its for 2007
    In the Operating System Deployment section of SCCM right click on Computer Association and choose
    Import Computer Information
    when the wizard appears select Import Computers using a file
    The file itself must contain the information we need in this (CSV) format
    COMPUTERNAME,GUID,MACADDRESS
    (sample below)
    Quote
    deployvista,3ED92460-0448-6C45-8FB8-A60002A5B52F,00:03:FF:71:7D:76
    NEWCOMP1,55555555-5555-5555-5555-555555555555,05:06:07:08:09:0A
    NEWPXE,23CA788C-AF62-6246-9923-816CFB6DD39F,00:03:FF:72:7D:76
    w2k8deploy,BFAD6FF2-A04E-6E41-9060-C6FB9EDD4C54,00:03:FF:77:7D:76
    if we look at the last line, I've marked the computer name in Red, the GUID in BLUE and the MAC address in GREEN, separate these values with commas as above.
    w2k8deploy,BFAD6FF2-A04E-6E41-9060-C6FB9EDD4C54,00:03:FF:77:7D:76
    the file can be a standard TEXT file that you create in notepad, and you can rename it to CSV for easier importing into our wizard...
    so, click on Browse and browse to where you've got your CSV file
    on the Choose Mapping screen, you can select columns and define what to do with that mapping, eg: you could tell it to ignore the GUID value (we won't however)
    on the next screen you'll see a Data Preview, and this is useful as it will highlight any errors it finds with a red exclamation mark, in the example below a typo meant that it correctly flagged the MAC address as invalid
    so edit your CSV file again and fix the error, click previous (back) and try again
    Next choose the target collection where you want these computers to end up in
    review the summary
    in SCCM collections, we can now see the computers we've just imported from File,
    Enjoy
    Nikkoscy

  • How to use csv file to populate all the items in a form

    Our environment - Forms 6i/IAS 9i on Solaris/8.1.6 database on
    Solaris.
    In the web form I want the user to type in the name of an
    existing csv file(which contains 1 record). Then press a button
    and all the items on the form should be populated with the data
    in the csv file.
    One method is load the data in the csv file into the database
    using sqlloader and then execute a query to populate the form.
    Is there another way - instead of loading the file in the databas
    e? Thanks

    Hi Afroz,
    To be more specific, if the csv file doesn't has header, please refer to this script to add header:
    $csv = Import-Csv d:\haha.csv -Header "UserA","UserXYZ","EmailA"
    Then you can loop this csv file to run the "add-mailboxpermission" cmdlet, I recommend you can test this script before running against production environment, please also note I haven't tested this script:
    $csv = Import-Csv d:\users.csv -Header "UserA","UserXYZ","EmailA"
    foreach($each in $csv){
    write-host "assign fullaccess permission of user $($each.UserXYZ) on mailbox $($each.EmailA)"
    get-mailbox -identity $each.EmailA | add-mailboxpermission -user $each.UserXYZ -accessrights 'fullaccess'
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Import-csv how to make powershell ignore a line in a csv file if a column contains a certain value

    Basically I got a very basic script that uses a csv file to input values needed to remove people from a distro list. That part is working fine. I'd like to add to it's functionality so it can look at values in a certain column, and if any of those certain
    values are present, I want powershell to skip that line and not process it. For instance I have a column in the csv called Group. If I have a listing under Group that says ABC I want the script to skip that line and not try to process it. What could I insert
    into the script to acheive this?

    You're welcome. You can add to the if test with -and:
    Import-Csv .\groups.csv | ForEach {
    If ($_.Group -ne 'ABC' -and $_.Group -ne 'DEF') {
    Write-Output "Group is $($_.Group)"
    Write-Output "Name is $($_.Name)"
    Output:
    Group is GHI
    Name is Show Me
    groups.csv:
    Group,Name
    ABC,Skip Me
    DEF,Skip Me Too
    GHI, Show Me
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Handling CSV files from Crystal 10

    <p>I&#39;m encountering some difficulty with a report with a CSV file as input.Crystal is automatically interpreting a column to have a numeric data type instead of text. Any ideas how I can force Crystal to interpret it differently?</p><p> Thanks a lot.</p>

    Hi, thanks for the reply. I'm connecting using ADO for Access/Excel. Also tried using ODBC for text file. Column  number 9 ('Sec. ID num') is the column in question.
    Here's the contents of a sample file (it's not too small unfortunately)
    Record Type,Portfolio Number,Purs/Sale,Trans. Number,Settlement Date,Trade Date,Asset Type,Sec. ID Type,Sec. ID Num,Sec Name,Euroclear Ind,Nominal,Quoted Ccy,Trade Price,Consideration,Comm,Misc. Comm,Inc/Pch Sold,Sett Ccy,Sett Cash,Trd Broker,Trd Broker Nm,Trd Brok Acc #,Sett Broker,Sett Broker Nm,Sett Broker Acc#,Comments,Trade Src ID,Cancel Trade,Rel Trans ID, Port Num,Dim Trans Num,Header 1,Header 2,Header 3,Header 4,Header 5
    DET,AAAA,P,3072779,20070126,20070123,EQ,SD,AAAABBB,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,MLILGB3LESF,MERRIL-02,,BKAUATWW,,,,9644303,N,0,A-SUMMBAL,20070124000002,HDR,9644303,16184,20050201,161849
    DET,AAAA,P,3072779,20070126,20070123,EQ,SD,4943111,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,MLILGB3LESF,MERRIL-02,,BKAUATWW,,,,9644303,N,0,A-SUMMBAL,20070124000002,HDR,9644303,16184,20070201,161849
    DET,AAAA,S,3072780,20070126,20070123,EQ,SD,5541979,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,9900.00,SBILGB2L,SALBRO-01,,CITTGB2L,,,,9644303,N,0,A-SUMMBAL,20070124000003,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072781,20070126,20070123,EQ,SD,2676302,Stock A,,1000,CAD,10,10000,100.0000000,0.0000000,0.00,CAD,10100.00,SLIIGB2L,LEHBRO-01,T12702711,ROYCCAT2,,/ADEP/RBCT,,9644303,N,0,A-SUMIGLOB,20070124000004,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072782,20070126,20070123,EQ,SD,7103065,Stock A,,1000,CHF,10,10000,100.0000000,0.0000000,0.00,CHF,10100.00,MLILGB3LESF,MERRIL-02,,MLILGB3LESF,,/ADEP/GB101073,,9644303,N,0,A-SUMIGLOB,20070124000005,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072783,20070126,20070123,EQ,SD,5086577,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,MLILGB3LESF,MERRIL-02,6500440000,PARBDEFF,,/ADEP/0007259,,9644303,N,0,A-SUMIBAL,20070124000006,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072784,20070126,20070123,EQ,SD,B01CP21,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,MLILGB3LESF,MERRIL-02,,PARBESM,,,,9644303,N,0,A-SUMMTECH,20070124000007,HDR,9644303,16184,20070201,161849
    DET,AAAA,S,3072785,20070126,20070123,EQ,SD,5051252,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,9900.00,MLILGB3LESF,MERRIL-02,,NDEAFIHH,,,,9644303,N,0,A-SUMMTECH,20070124000008,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072786,20070126,20070123,EQ,SD,7088429,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,ABNAGB22,ABNAMR-03,23667,ABNAGB22,,/ADEP/00611,,9644303,N,0,A-SUMMBAL,20070124000009,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072787,20070126,20070123,EQ,SD,B00G0S5,Stock A,,1000,HKD,10,10000,100.0000000,110.0000000,0.00,HKD,10210.00,MLPFUS31XXX,MERRIL-02,000000438280,MLFEHKHH,,,,9644303,N,0,A-SUMIGLOB,20070124000010,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072788,20070126,20070123,EQ,SD,5013832,Stock A,,1000,EUR,10,10000,100.0000000,101.2500000,0.00,EUR,10201.25,DAVYIE21,DAVBRO-01,,DAVYIE21,,/CRST/189,,9644303,N,0,A-SUMMBAL,20070124000011,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072789,20070126,20070123,EQ,SD,2569286,Stock A,,1000,USD,10,10000,100.0000000,0.0000000,0.00,USD,10100.00,MLPFUS31XXX,MERRIL-02,,MLPFUS31,,/ADTC/161,,9644303,N,0,A-SUMIGLOB,20070124000012,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072790,20070126,20070123,EQ,SD,B0DJNG0,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,10100.00,SBILGB2L,SALBRO-01,,CITIITMX,,,,9644303,N,0,A-SUMMGROW,20070124000013,HDR,9644303,16184,20070201,161849
    DET,AAAA,S,3072791,20070126,20070123,EQ,SD,6435145,Stock A,,1000,JPY,10,10000,100.0000000,0.0000000,0.00,JPY,9900.00,MLPFUS31XXX,MERRIL-02,,MLCOJPJT,,,,9644303,N,0,A-SUMIGLOB,20070124000014,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072792,20070126,20070123,EQ,SD,4942818,Stock A,,1000,USD,10,10000,100.0000000,0.0000000,0.00,USD,10100.00,MSNYUS33,MORGAN-02,,MSNYUS33,,/ADTC/050,,9644303,N,0,A-SUMIGLOB,20070124000015,HDR,9644303,16184,20070201,161849
    DET,AAAA,S,3072793,20070126,20070123,EQ,SD,5727360,Stock A,,1000,EUR,10,10000,100.0000000,0.0000000,0.00,EUR,9900.00,MSLNGB2X,MORGAN-01,47612G,PARBFRPPNLC,,/ADEP/019,,9644303,N,0,A-SUMMGROW,20070124000016,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072794,20070126,20070123,EQ,SD,B11HK39,Stock A,,1000,NOK,10,10000,0.0000000,0.0000000,0.00,NOK,10000.00,MIDLGB22JAC,HSBCGP-01,,ESSENOKX,,,,9644303,N,0,A-SUMIBAL,20070124000017,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072795,20070126,20070123,EQ,SD,5959378,Stock A,,1000,SEK,10,10000,100.0000000,0.0000000,0.00,SEK,10100.00,MLILGB3LESF,MERRIL-02,,ESSESESS,,,,9644303,N,
    0,A-SUMMTECH,20070124000018,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072796,20070126,20070123,EQ,SD,6916844,Stock A,,100,SGD,10,1000,100.0000000,0.0000000,0.00,SGD,1100.00,MLPFUS31XXX,MERRIL-02,,MLSSSGSG,,,,9644303,N,0,A-SUMIGLOB,20070124000019,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072797,20070126,20070123,EQ,SD,2113382,Stock A,,1000,USD,10,10000,100.0000000,0.0000000,0.00,USD,10100.00,MLPFUS31XXX,MERRIL-02,,MLPFUS31,,/ADTC/161,,9644303,N,0,A-SUMMTECH,20070124000020,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072798,20070126,20070123,EQ,SD,3134865,Stock A,,1000,GBP,10,10000,100.0000000,101.0000000,0.00,GBP,10201.00,CITIGB2L,SANBER-01,,CITIGB2L,,/CRST/899,,9644303,N,0,A-SUMMGROW,20070124000021,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072799,20070126,20070123,EQ,SD,2890005,Stock A,,1000,USD,10,10000,100.0000000,0.0000000,0.00,USD,10100.00,MLPFUS31XXX,MERRIL-02,,MLPFUS31,,/ADTC/161,,9644303,N,0,A-SUMMTECH,20070124000022,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072815,20070126,20070123,EQ,SD,2890005,Stock A,,1000,USD,11,11000,101.0000000,0.0000000,0.00,USD,11101.00,MLPFUS31XXX,MERRIL-02,,MLPFUS31,,/ADTC/161,,9644303,Y,3072799,A-SUMMTECH,20070124000022,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072800,20070126,20070123,FI,SD,7624641,Stock A,Y,1000,EUR,100,1000,0.0000000,0.0000000,21.16,EUR,1021.16,JPMSGB2L,CHAINV-04,,JPMSGB2L,,/AEID/95724,,9644303,N,0,A-SUMMGROW,20070124000023,HDR,9644303,16184,20070201,161849
    DET,AAAA,S,3072801,20070126,20070123,FI,SD,7624641,Stock A,Y,1000,EUR,100,1000,0.0000000,0.0000000,21.16,EUR,1021.16,BARCGB33,BARCLY-03,,BARCGB33,,/ACID/34797,,9644303,N,0,A-SUMMGROW,20070124000024,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072802,20070126,20070123,FI,SD,3258486,Stock A,Y,1000,EUR,100,1000,0.0000000,0.0000000,25.20,EUR,1025.20,RBOSGB2RTCM,RBSGRP-01,,RBOSGB2RTCM,,/AEID/97802,,9644303,N,0,A-SUMMGROW,20070124000025,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072810,20070126,20070123,FI,SD,3258486,Stock A,Y,1000,EUR,100,1000,0.0000000,0.0000000,25.20,EUR,1025.20,RBOSGB2RTCM,RBSGRP-01,,RBOSGB2RTCM,,/AEID/97802,,9644303,Y,3072802,A-SUMMGROW,20070124000025,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072803,20070126,20070123,FI,SD,B0LNX64,Stock A,,1000,GBP,100,1000,0.0000000,0.0000000,16.42,GBP,1016.42,BARCGB33,BARCLY-03,,BARCGB33,,/CRST/034,,9644303,N,0,A-SUMMBAL,20070124000026,HDR,9644303,16184,20070201,161849
    DET,AAAA,P,3072804,20070126,20070123,FI,SD,B06FWG8,Stock A,Y,1000,EUR,100,1000,0.0000000,0.0000000,15.78,EUR,1015.78,DEUTGB2L,DEUTSC-03,,DEUTGB2L,,/AEID/91255,,9644303,N,0,A-SUMMGROW,20070124000027,HDR,9644303,16184,20070201,161849
    TLR,28,219738.17,9644303,,,,,,,,,,,,,,,,,,,,,,,,,,,,,HDR,9644303,16184,20070201,161849

  • BAPI with CSV file

    Hello Gurus,
    Is it possible to pass a CSV file as a parameter in a  BAPI ? or we are only allowed to pass the data of the CSV file as a table in a BAPI?

    hii
    you can pass single value as a parameter also in BAPI FM ..for that you can use loop and then pass work area in BAPI for a single value.
    like
    LOOP AT it_data INTO ls_doc.
    documenttype               = ls_doc-documenttype.
    regards
    twinkal

  • B1if Debugging a csv file import?

    Hi All
    I am new to B1if, what are the steps involved in debugging a scenario that takes a csv file as input?
    I.e. How do you specify a given file as input at the step level if this is possible?

    In the Connection manager properties for the csv file set the connection string through an expression some thing like below
    @[User::myfilename] + "/Bensfile" + (DT_STR,4,1252)DATEPART( "yyyy" , getdate() ) + RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , getdate() ), 2) + RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , getdate() ), 2) +".csv"
    Where myfilename waill be the variable to store the full file path
    Surender Singh Bhadauria
    My Blog

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • How to process large input CSV file with File adapter

    Hi,
    could someone recommend me the right BPEL way to process the large input CSV file (4MB or more with at least 5000 rows) with File Adapter?
    My idea is to receive data from file (poll the UX directory for new input file), transform it and then export to one output CSV file (input for other system).
    I developed my process that consists of:
    - File adapter partnerlink for read data
    - Receive activity with checked box to create instance
    - Transform activity
    - Invoke activity for writing to output CSV.
    I tried this with small input file and everything was OK, but now when I try to use the complete input file, the process doesn't start and automatically goes to OFF state in BPEL console.
    Could I use the MaxTransactionSize parameter as in DB adapter, should I batch the input file or other way could help me?
    Any hint from you? I've to solve this problem till this thursday.
    Thanks,
    Milan K.

    This is a known issue. Martin Kleinman has posted several issues on the forum here, with a similar scenario using ESB. This can only be solved by completely tuning the BPEL application itself, and throwing in big hardware.
    Also switching to the latest 10.1.3.3 version of the SOA Suite (assuming you didn't already) will show some improvements.
    HTH,
    Bas

  • SQLLOADER fails to load space from the CSV file

    Hello,
    -- I am using sqlloader to load tables(Release 10.2.0.4.0)
    --- I have actual spaces in my CSV files, which i want to load as it is in the tables.
    --- However, sqlloader loads "nulls" instead.
    --- Please help.

    Vishal,
    Use this and you should be able do this, I am attaching a working example based your input data
    Table: Layout
    create table layout (
    col1 varchar2(10),
    col2 varchar2(100),
    col3 varchar2(10)
    );# Control file: layout.ctl
    LOAD DATA
    REPLACE PRESERVE BLANKS INTO TABLE KLONDIKE.LAYOUT
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 char(10),
    col2 char(100),
    col3 char(10)
    {code}
    Loading from command line
    {code}
    C:. sqlldr username/password control=layout.ctl data=layout.txt log=layout.log
    {code}
    Verfiy using following sql that data loaded with one white single whitespace
    {code}
    select layout.* , length(col2) from layout;
    {code}
    Regards
    Edited by: OrionNet on Mar 28, 2009 12:09 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I need to monitor a transducer block parameter and save it to a CSV file.

    How can I monitor a transducer block parameter and save it to a CSV file?  The reason is that I need to do some long-term testing of an FFb device we are developing, and I need to read the primary output parameter of the transducer block (not the scheduled AI block) every second or two and save to a CSV file.
    I have tried to figure out a way to do that with FBUS Configurator, unsuccessfully, and I purchased FBUS Monitor, as that was recommended by an industry expert, but I have been unsuccessful at getting that to work as well.

    Hi Wpinson,
    Neither FBUS Configurator nor Monitor can meet your requirement. However, there are other approaches. NI-FBUS provides APIs for C, LabVIEW, VB and C#. You can use these APIs to read a parameter value of any block and use standard file IO functions to save the date into CSV file. The LabVIEW APIs are highly recommended because they are easy-to-use and LabVIEW also provides APIs for CSV file operations. You can build the application w/ LabVIEW in a short time.
    You can find the examples of the FBUS APIs in the following folders:
    1. C: C:\Program Files\National Instruments\NI-FBUS\MS Visual C\examples
    2. VB: C:\Program Files\National Instruments\NI-FBUS\MS Visual Basic\example
    3. C#: C:\Program Files\National Instruments\NI-FBUS\MS .NET\examples\CsharpExample
    4. LabVIEW: search "fieldbus" in the LabVIEW example finder.

Maybe you are looking for