Downloading as dat file ... each columns in  NEW LINE

HI ,
Can any one help me out in this ...
example emp table having columns empid ename salary
12 AA 123
now im downloading it as a ".dat" file , its getting downloaded but all the columns are in the same line
i have tried it with chr(13) still its not getting to next line
select empid||chr(13) ||ename||chr(13)||salary from emp .. this is how i framed the query ...
in toad its displaying with square box in between the field
required is
=======
12
AA
123 .. this is how it has to downloaded in dat file
regards,
ARUMUGAM

HI,
the query is working only for wordpad .. science im dow\nloading that file as a DAT file i cn open it in execle, word also but when i open in these two its displaying all the columns values in single line and not in new line
the problem when i open in wordpad is ......... the file contains tags line <table>,<td etc > h
how could i eleminate these tags and
what could be done for getting in excel and word
regards,
ARUMUGAM

Similar Messages

  • Get frequent data for each column of a table

    What is the best way to get the most frequent data in each column of a table.
    we have around 25 tables and each table has around 20 columns , so rather than writing group by for each column of table , is there any easy way to find this?
    example we have table
    Column A       Column B         Column C
    Apple             Monday             Red
    orange            Tuesday            Green
    Apple              Monday            Red
    Lemon            Wednesday       Green
    Apple               Thursday         Red
    in this table, column A's frequnt data is Apple , column B's frequent data is Monday , Column C's frequnt data is Red
    Apple 3          Monday 2                  Red 3
    Orange 2        Tuesday 1                 Green 2
    Lemon 1          Wednesday 1         
                          Thursday 1
    Group by kind of query will give this result, but with 20 tables each having 20 - 30 columns if we need similar kind of result ..  is there any way to get this data.

    Hi,
    GROUP BY (using aggregate functions) is the best way to do what you described.
    PIVOT and UNPIVOT are probably what you'd want in this case.  The phrase "GROUP BY" may not actually appear in your code, but you'll essentially be doing a GROUP BY.
    Analytic functions (rather than aggregate functions) can do the job, too, but they'll be less efficient.  Analytic functions get you results about the groups, without losing each row's identify, but in this case, losing each row's identity is eactly what you want to do.  You only want 'Apple' to appear 1 time, not 3 times.
    The fact that you need to do the same query on 20 different tables suggests that there's something wrong with your table design.  Wouldn't it be better to have 1 big table, with a new column that has 20 unique values instead?
    I hope this answers your question.
    If not, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible.  For example, instead of posting a problem with 20 tables, each having 25 columns, post a similar problem involving, say, 2 tables, each with 3 columns.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Downloading a .DAT file

    Am having a mental lapse here.
    Using DW MX 2004 on XP
    I need to create a link where a user (non computer literate)
    can download a .DAT file to his.her desktop.
    All i get is a "page cannot be found" error page
    Does the file has to be a .exe or .zip file for it to open
    the dialogue box to for user to save or open or am missing
    something here?
    any hints will be appreciated
    Thks

    This is as much a guess as a hint, but I figured that you may
    be able to use
    a "Force Download" script:
    You don't mention what server language you're using... I use
    ASP VBSCRIPT
    and would use something like I've attempted to explain below:
    First of all create a page called "error.asp" - the user will
    be redirected
    to this page if the download fails.
    Then create a page called "forcedownload.asp" in the same
    folder/directory
    Copy and paste the following code to the forcedownload.asp
    page:
    =====>Begin
    <% FileName = (Request.QueryString("FileName"))%>
    <%
    Response.Buffer=true
    On Error Resume Next
    'Create a stream object
    Dim tfm_downloadStream
    Set tfm_downloadStream = Server.CreateObject("ADODB.Stream")
    tfm_downloadStream.Type = 1
    tfm_downloadStream.Open
    tfm_downloadStream.LoadFromFile
    Server.Mappath("../../changetofilepath/"&(FileName))
    If Err.number = 0 Then
    Response.Clear
    Response.ContentType = "application/octet-stream"
    Response.AddHeader "Content-Disposition", "attachment;
    filename="&(FileName)
    Response.AddHeader "Content-Transfer-Encoding","binary"
    Response.BinaryWrite tfm_downloadStream.Read
    tfm_downloadStream.Close
    Set tfm_downloadStream = Nothing
    Response.End()
    Else
    tfm_downloadStream.Close
    Set tfm_downloadStream = Nothing
    Response.Redirect("error.asp")
    End If
    %>
    =====>End
    (Make sure you change
    "Server.Mappath("../../changetofilepath/"&(FileName))"
    to reflect the correct file path to the .dat file)
    Then link to forcedownload.asp including the filename in the
    URL under the
    variable "FileName".
    For example, the link would read something like:
    "forcedownload.asp?FileName=MyFile.dat" (of course you would
    change "MyFile"
    according to the correct filename)
    I don't know if there's some "rule" that prevents .dat files
    from working
    with such a script... I've never tried it, but I do use a
    script similar to
    the sample above for a number of different file types to be
    downloaded
    across a range of different websites.
    Regards
    David
    "ositogrande" <[email protected]> wrote in
    message
    news:[email protected]...
    > Am having a mental lapse here.
    > Using DW MX 2004 on XP
    > I need to create a link where a user (non computer
    literate) can download
    > a
    > .DAT file to his.her desktop.
    > All i get is a "page cannot be found" error page
    > Does the file has to be a .exe or .zip file for it to
    open the dialogue
    > box
    > to for user to save or open or am missing something
    here?
    > any hints will be appreciated
    > Thks
    >

  • How to name the data for each column I am acquiring in lvm file

    does anybody hint  How to name the data for each cloumn I am acquiring in lvm file.
    I want to tag or name ,eg temperature at top of a column which shows the temperature readings .I am writing into a labview measurement file.
    Thanks

    Use Set Waveform Attribute on each channel of your data.  Set an attribute with name "NI_ChannelName".  The value is a string containing the name you wish to call the channel.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Download Binary Data File over Serial Port

    I need help setting up a .vi that I can use to download a binary data file from a dos-based system. I will send the system a command, say ascii "DOWNLOAD", and then the remote system will send me a binary data file that will be approx. 600MB. I won't be doing any display/manipulation using labview, I will just need to have the option available in LV to recieve the file.
    Any examples would help a programmer that is new to LV and is getting a little desperate.

    A VISA Read doesn't care whether the data it's getting is binary or ASCII. Where you might have problems is detecting that file transfer is complete. If you have enable termination character set to True in the VISA Configure Serial Port, the read will stop as soon as the termination character is detected. The default termination character is 0xA or a linefeed. You probably don't want to use this. If the file is terminated with a character or string of characters that you now will be unique, you can use this. If there is no unique termination character at the end of the file, the next best thing is to know the file size exactly and set the byte count of VISA Read to that number. Based on file size and baud rate, you would also need to adjust the VISA timeout value. Another way to do this is to transfer the data in pieces and write to a file as soon as the data is received. The reading of data would then be terminated when there are no more bytes available at the serial port. I've attached a LabVIEW 7.0 program that should give an idea of the last approach.
    Attachments:
    File Transfer.vi ‏57 KB

  • Timeouts increased after we moved USR, SAP data files and TLogs to new SAN

    We are having issues with timeouts after we moved our USR, SAP SQL Datafiles and SAP Transaction Logs from our old SAN to a new SAN.
    Timeouts for SAPGUI users are set to 10 minutes.
    We are running Windows Server 2003 with SQL Server 2005.
    The SAP database has 8 datafiles with a total size of about 350GB.
    Procedure we used to move SAP to new SAN:
    1. Attached 3 new SAN Volumes
         -a. USR
         -b. Data Files
         -c. Transaction Logs
    2. Shutdown SAP and SQL services
    3. Alligned the new volumes with a 1024kb offset and gave the Data files and Transaction log volumes a 64kb allocation
        size. (The alignment and 64kb allocation size were not setup for these volumes on the old SAN)
    4. Copied the 3 volumes from old to new.
    5. Changed the new volumes drive letter to the drive letters of the old volumes.
         -a. I had to restart in order to change the USR volume.
         -b. Because of this I had to resetup the sapmnt and saploc shares.
    6. Started SQL services and then SAP services and everything came up just fine.
    The week before we had anywhere from 1 to 9 timeouts per day.
    This week: Monday had 20 and Tuesday had 26.
    On Monday we saw that MD07 was the only transaction that was timing out, but Tuesday had others as well.
    The amount of users in the system is about the same.  The amount of orders going in are about the same.  No big transports went in right before we switched.
    Performance counters that I know about for disk look a lot better on the Data Files.
    - PAGEIOLATCH_SH ms/request is about 50% better
    - Under I/O Performance in DBACOCKPIT:
      - MS/OP is now anywhere from 5 to 30 - Old SAN: 50 to 300
    - The Hit Ratio is over 99% - same as the old SAN
    Looking at Wiley Introscope graphs:
    - The "SAP Host: Average queue length" is about 30% to 40% lower then the old SAN.
    - the "SAP Host: Disk utilization in %" is about the same.
    Questions:
    1. Did we do anything wrong or miss anything with our move procedure?
         a. Do we have to do anything in SQL since we changed volumes even though we kept the drive letters the same?
    2. What other logs or performance counters should I be looking at?
    Thank you,
    Neil

    Our new SAN Vendor is Compellent.  They have been fantastic.  I would highly recommend checking them out.
    The reasons for the timeouts had nothing to do with the SAN...Well kind of anyway.
    I decided to check t-code SM20 to see what users were doing when these timeouts were happening.  What I found was the program R_BAPI_NETWORK_MAINTAIN was being called thousands of times in a matter of 10 to 15 minutes at random times through out the day.  It would take up about 50 to 80 percent of the amount of programs being executed during these times.
    So, I sent this information to our developers and they found out that R_BAPI_NETWORK_MAINTAIN was being called from another program that was looping thousands of times. The trigger to stop the loop wasn't happening fast enough.  They made a change and we haven't seen the timeouts since.
    I think that the performance increases allowed the loop to run faster which caused the slow downs and timeouts to happen more often.
    Thank you to everyone for their help!
    Neil

  • LabVIEW created .DAT file with saving only new data on existing files

    I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data every 1hr and since my test will last for many hours, the further along in the test the longer it would take to save the full file.  I know Diadem has the capability to save in such a manner, so I have thought about after I write to Diadem have a small Diadem application save periodically, but I haven't found a way to save the .DAT file, with out any signals coming into the save function.  I have attached the example .DAT file creater and saver I am using to figure it out.  thanks for your help!

    Howdy New Guy -
    I am not sure if you are looking to append to a file, or if you would
    like to overwrite a file.  In either case, you can take a look at
    the "Append To File.vi" example for DIAdem. 
    Either way, you may be experiencing problems because you are only using
    the "DIAdem Simple File Write.vi" (found on the DIAdem >> DAT
    Files palette).  Instead, you can use the "DIAdem File Write.vi"
    (located on teh DIAdem >> DAT Files >> DAT Files Advanced
    palette).  This VI can be set to overwrite or append to file.
    I hope this helps in your development!
    Andrew W. || Applications Engineer

  • How do I download Iphone data (especially contacts) to a new computer/external hard drive?

    How do I download Iphone data (especially contacts) to an external hard drive and then restore onto a new Iphone?

    You should copy everything form the old computer, or the backcu copy of the old computer to your new one.
    Certainly your computer has a method of copying everything to a new computer.
    Your contacts should be in your Addrees book, Outlook, whatever program you have been syncing.

  • SQL Loader - CSV Data file with carraige returns and line fields

    Hi,
    I have a CSV data file with occasional carraige returns and line feeds in between, which throws my SQL loader script off. Sql loader, takes the characters following the carraige return as a new record and gives me error. Is there a way I could handle carraige returns and linefeeds in SQL Loader.
    Please help. Thank you for your time.
    This is my Sql Loader script.
    load data
    infile 'D:\Documents and Settings\user1\My Documents\infile.csv' "str '\r\n'"
    append
    into table MYSCHEMA.TABLE1
    fields terminated by ','
    OPTIONALLY ENCLOSED BY '"'
    trailing nullcols
    ( NAME CHAR(4000),
    field2 FILLER,
    field3 FILLER,
    TEST DEPT CHAR(4000)
    )

    You can "regexp_replace" the columns for special characters

  • Start report column on new line

    Hey guys,
    Is there anyway to split a report into two lines?? Its just i have a large report that goes accross the page im wondering whether it is possible to split this so that it doesnt continue over the page. So start a column of the report on a new line..
    T.I.A
    Stefan

    do you want to split the rows or the columns?
    eg:
    A B C A B C
    row row
    row row
    end ...
    or
    A B
    row
    row
    c
    row
    row
    regards,
    jR

  • HT4061 Download all data from lost iPad to new ipad

    Download all apps n data from my lost iPad to a new iPad I have purchased

    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Erase your device remotely
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • Using Labview to download a data file

    I have a time-critical problem that I'm hoping some of the experts here can help me fix. In the file download_c.vi, I am trying to download a file from a remote computer over a serial port to my Labview control computer. The file works great when the file size is small(500-700KB). Anything over this, and I have to increase the bytes for the visa read to read, and then I lose data. Eventually the file that I will be downloading will be about 600MB. I know that the way the .vi is set up, this will never work for large files, and I throw myself on the mercy of the experts here in the forums for help.
    Can anyone take a look at the file that I've attached and show me how i can make this work for large files, more efficiently, and without losing my data.
    Advance thanks from a beginner that is getting slightly desperate.
    JDM
    Attachments:
    File Download.zip ‏46 KB

    Well, my first question would be - do you have to use serial?
    600 MB sounds like an awful lot for a serial connection.
    Second, I have never done anything like this, and I'm not sure I understood why you're losing data and where it's being "vanishing". If you're asking the port for X bytes and the timeout is too short, you will lose your data. You might need to play with it.
    But let's start with the first question I asked - does it have to be serial?
    Try to take over the world!

  • Crosstab two joined tables multiplies the data in each column ....

    below is code that crosstabs monthy sales numbers and totals for each month.  So what I need to do is add a column that totals last years sales (table will be called [2013]) and add a column called 2013 YTD. I also need to add a calculation column that
    calculates growth from one year to another. So I join the 2013 table and add one last line that sums 2013 sales but i need only Jan-Mar at this point. in other words I just need to see the total sales for each dealer from 2013 Jan-Mar while still viewing Jan-Dec
    for the current year. So looking at the end product I need to see the Dealer Info, Jan, Feb, Mar, Apr......and at the end 2013 Sales and Growth. Thus, the Where clause. Unfortunately, each months sales are multiplied x 3 with or without the 2013 sum line.
    As soon as I join the tables the numbers get multiplied.
    What am I missing??????
    SELECT    
    substring([2014].Dealer,18,50)AS
    [Dealer Name],substring([2014].Dealer,9,1)AS
    [District],substring([2014].Dealer,11,6)AS
    [Dealer Code],
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 1 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Jan,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 2 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Feb,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 3 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Mar,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 4 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Apr,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 5 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS May,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 6 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Jun,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 7 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Jul,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 8 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Aug,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 9 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Sep,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 10 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Oct,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 11 THEN
    [2014].[Sales Count]
    ELSE 0 END)
    AS Nov,
    SUM(CASE
    WHEN [2014].[Transaction Sales Month]
    = 12 THEN
    [2014].[Sales Count]
    ELSE 0 END
    AS
    Dec,
    SUM([2014].[Sales Count])
    AS [2014 Total],
    FROM        
    dbo.[2014]
    GROUP
    BY substring([2014].Dealer,18,50),substring([2014].Dealer,9,1),substring([2014].Dealer,11,6)

    This needs to be moved to Transact-SQL forum. You may want to post DDL of your tables, some input data (as insert statements) and desired output.
    In the meantime I think you'll find this blog post helpful:
    Aggregates with multiple tables
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Use Labview to download a data file

    I have a time-critical problem that I'm hoping some of the experts here can help me fix. In the file download_c.vi, I am trying to download a file from a remote computer over a serial port to my Labview control computer. The file works great when the file size is small(500-700KB). Anything over this, and I have to increase the bytes for the visa read to read, and then I lose data. Eventually the file that I will be downloading will be about 600MB. I know that the way the .vi is set up, this will never work for large files, and I throw myself on the mercy of the experts here in the forums for help.
    Can anyone take a look at the file that I've attached and show me how i can make this work for large files, more efficiently, and without losing my data.
    Advance thanks from a beginner that is getting slightly desperate.
    JDM
    Attachments:
    File Download.zip ‏46 KB

    JDM.
    As you can see, if you post the same question in multiple threads and multiple boards you just get people to respond for no reason. Brett's answer is almost identical to the one I gave you in the LV board and probably not far off from what you would have gotten from the others in your third thread. If you do post to multiple boards, include a link to the other thread, so people can see which answers you already recieved.
    Try to take over the world!

  • Why are byte order marks (BOM) in HTML files treated as a new line?

    Really not much to add. The BOM is placed at the top of each file and is displayed as a line feed in the browser.

    The more I use ColdFusion Builder 2 the more I miss HomeSite.  The list of undesirable features for this POS development grows daily along with my frustration!!!  If Adobe is serious about being a player in the development space then they need to fix their development environements!!!  h is every time I
    My latest ***** is every time I open up my preferences and select ColdFusion -> Profiles -> Editor -> Formatter it hangs.  Great thanks...
    Let see I now get ending angle brackets every time I type in a variable for things like CFLOOP but it doesn't add the </CFLOOP> unless I first delete the > that it put in first.  When it adds </CFLOOP> it is lower case even though I want it upper case.  Weired thing is when the closing </CFQUERY> tag is addded it is upper case.
    Can you guys just bring back HomeSite please???  That was a solid development environment that worked!!!  Or should I just give up on CF???  After a decade plus of developing in CF I am getting close to never using it again!!!  And this POS development environment is a big reason why!!!   >:(

Maybe you are looking for

  • VERY STRANGE Interactive Report Filter Error

    I have a very interesting problem happening with an interactive report in my APEX application. The report runs just fine and has been in use for about 6 months. Just recently, the users have begun to run into problems when using the filter capability

  • Profile Manager Settings for Group does not display for individual members of the group

    Hi there, Can anyone confirm whether I am going mad or not, I and new to Mac Server and have set up Profile Manager on OSX Mavericks from scratch and have been using it successfully to deploy enterprise iPads. I have just gone to edit the profile as

  • Solaris 8 can't open root

    Solaris 8 It gets as far as reading the hostname on boot and then spits out /dev/dsk/c0d0s1: no such device or address (this is swap). Then it trieds to check / but complains it can't open it (/dev/rdsk/c0d0s0). It wants me to repair it manually. I t

  • Acc posting

    HI, pl tel me account posting ie.s which g/l a/c will get  credit/debit for movement type 1. 561 stock entry &. 521 2. where we need to do setting for this & which transaction keys must be used 3. when can we use mov type 261 & 651 PL suggest

  • PRORES Exporting on Windows 7 machine

    Is it possible? Maybe there is on option to use FFMPEG library to export diectly somehow?