Help needed in spooling a file

hello gurus ,
i have a table emp
consist of values like
name place phno
abcd ksla 123
errd lkis 456
ertw asd 324
reqq lsd 432
then i did was
spool d:/file1/empdetails.xls
select * from emp
then the file got spooled
but the output was not exactly wat i needed
the values were spooled in a single column in ms-excel (name ,place ,phno all in one column )
i needed the spooled output to be seperate in three columns like name in column1 and place in another column like that
so can u guide me to achieve the result
regards,
friend

That's because Excel (.xls) files are a proprietary Microsoft format, and are not compatible with just simply spooled output from and SQL*Plus output of a select command.
You could look at the forum FAQ: {message:id=9360007} as this question is asked over and over again.
Or you could do something like the following to generate a CSV files that Excel can understand...
As sys user:
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 for the header row and the data to be written to seperate files if required.
e.g.
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,,10The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
Adapt to output different datatypes and styles are required.

Similar Messages

  • Help needed on properties of files attached to the transaction-crmd_order

    Hi Experts,
    My requirement is to hide the file attached to the transaction(crmd_order).
    For this, I got the information about the file from cl_crm_documents=> get_info method and the FLAG VARIABLE used for hiding th file is KW_SYSTEM_FLAGS.
    But if I try to set this flag by passing this as a import paramter(as properties) to cl_crm_documents=> change_properties method, I am getting 'SKWF_IO E003KW_SYSTEM_FLAGS' error.I am getting this error in cl_skwf_io_util=>check_properties_authority method. It says that the hidden property is a restricted one and we are not supposed to change it.
    But I am in need of changing this. Can anyone help me out in this?
    Regards
    Athikrish.

    Al_Barrs wrote:
    THR AUG th?I have some picture, graphic and text files that have in some way been saved in the Creative Player2 format on my computer. I need to associate these files with another program so that I can reoer the images and text. Can anyone tell me what program I can use to associate these Creative Player2 files to revover them, or if there is some other way to open them... Desperate for help!!! Thanks in advance. Al [email][email protected]][email protected][/url]?
    What player are you referring to? Is it Creative PlayCenter 2? Playcenter doesn't save any special extension to the files. It uses all the standard extension. eg. jpg,txt.... Not sure what you are trying to say.

  • Help needed to write control file.

    Hi Guys,
    i need to write one control file to upload data from .txt file to oracle table.
    .txt file data contains like this
    2006041110:40:22
    2006041111:30:42
    2006041210:40:22
    i need to upload this data into date column in oracle table.
    please help me to write control file for this requirement.
    Thanks for your help and time

        data1        "to_date(:data1, 'YYYYMMDDHH24:MI:SS')"

  • Help needed on Transforming input File to EDI Format

    I have an input flat file in one location. Using BizTalk, i need to pick that file from that Recieve location, transform it to EDI format and send it to Destination location.
    Now, when I place input file in the "Recieve location", it is being processed and it is erased from recieve location. But I am not able to see the output in the Destination location.
    And when i query it in BizTalk Administration console, the state is "Completed" without any errors.
     Any guidance/suggestions are appreciated. Thanks in advance.

    Hi all, I have just collated everything and have put it in my words below..Please
    let me know your valuable inputs as I am struck in this point from more than a week.
    I need to fetch an input flat file (.txt format) from the "Receive location" and I am supposed to transform that to an EDI message X12 format and send it to Destination folder.
    I have set up the receive port and send port configurations in the Admin Console, have created the Trading Partners, agreement and other settings.
    The problem I am facing : Now, when I place input file in the "Receive location", it is being processed and I am able to pick up the file from the input folder
    but I am not able to figure out why the file is not being processed and sent to the destination folder.. (If I query for All In Progress instances, suspended instances or Running instances : I am not getting any results and the below grid is always empty).
    And when i query it in Biz-talk Administration console for Tracked instances, the Receive pipeline component's state is "Completed" without any errors.
    And I am not using any Orchestration in between..
    Thank you all in advance....

  • Help needed in creating pdf file

    Hi all,
    I keep coming back to this question again. I chose iText over jasper reports to generate PDF files for some good reasons. in my application I
    1. accept file uploaded by the user
    2. process the data inside files and separate them into good data & bad data
    3. put these good and bad data in a vector
    4. pass it to a bean to write PDF files
    5. files are stored in a application ROOT path under different folders based each data input (ex: each employer folder)
    6. I delete these files from the application path
    I go back to the data submit screen and start submitting for another employer. While processing for the next employer the system process data correctly and writes the PDF files into the appropriate folder, but t when the browser link that has the PDF get clicked, instead of current PDF, we still get the previous employer documents.
    what to do?
    please please somebody help me
    hepzi

    hey folks
    I have found out that every time the PDF file is downloaded, in the firefox download manager, that opens up to show the status of the downloaded PDF, when I click on the "Remove" button once I open the much needed PDF, the PDF is not carried onto the next upload for some reason... but I still need to investigate in Netscape and see how it works..
    thanks guys
    I will come back to update you once I test it in netscape navigator
    hepzi

  • Urgent Help Needed regd reading a file in apex

    Hi all,
    I need to know how can we store content of a file in a variable or any item(like text box).
    i have a os user name in the file.
    when i use apex_util.get_file it is opening in new page.
    instead i want it to stored in a text box or any variable.
    cany any one help me on this.
    Thanks in advance,
    Srini
    Message was edited by:
    user650963

    Hi Srini,
    You can use the normal file upload functionality to do this.
    1 - Create a page region and add in a File Browse item - I'll call it P1_FILE_NAME
    2 - Create a button in that region, I'll call it P1_UPLOAD_BUTTON, and set it to branch back to the same page
    3 - Create a TextArea item - I'll call it P1_FILE_CONTENTS
    4 - Create a page process, called P1_UPLOAD_FILE, and triggered by the P1_UPLOAD_BUTTON
    5 - Use the follownig code for the process:
    declare
    v_clob clob;
    v_blob blob;
    v_varchar2 varchar2(30000);
    BEGIN
    SELECT blob_content into v_blob FROM APEX_APPLICATION_FILES where name = :P1_FILE_NAME;
    v_clob := wwv_flow_utilities.blob_to_clob(v_blob,'utf-8');
    :P1_FILE_CONTENTS := wwv_flow_utilities.clob_to_varchar2(v_clob);
    :P1_FILE_NAME := '';
    delete from APEX_APPLICATION_FILES WHERE NAME = :P1_FILE_NAME;
    END;When you select the file and click the Upload button, the file is uploaded into the APEX_APPLICATION_FILES table. The contents of the file is put into a BLOB field. The above code, converts that BLOB into a CLOB and then into a VARCHAR2 value - you can then change P1_FILE_CONTENTS to that value. Finally, the code removes the file from the table and resets the File Browse field.
    Note that this assumes that the file contains nothing but text and is no more than 30,000 characters in length.
    Andy

  • Help needed sorting a text file.

    I'm trying to simply open a file, which is a text file of a list of names, then sort that file, the print the sorted file. The problem is that I keep getting this error
    Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at pro.NamesFile.main(NamesFile.java:36)
    Which is at this line[b] words= new String(inputFile.nextLine());
    It's not reading any lines from the file and I can't figure out why.
    Here's the rest of my code:
    public class NamesFile {
         public static void main(String[] args) throws FileNotFoundException {
              Scanner inputFile;
            inputFile = new Scanner(new File("C:/Documents and Settings/Cougar/Desktop/New Folder (2)/names.txt"));
            String name;
            inputFile.next();
            String[] words = new String[100];
            while (inputFile.hasNext()) {
                 name = inputFile.nextLine();     
                 for (int i = 0; i < words.length; i++) {
                      words[i] = new String(inputFile.nextLine());
            Sort2.insertionSort(words);
                 for (int index=0; index < words.length; index++)
                    System.out.print(words[index].toString()+"\t");
    }Here the sort algoritm I'm using, it the insertion sort one.
    public static void selectionSort (String[] list)
               int min;
               String temp;
               for (int index = 0; index < list.length-1; index++)
                  min = index;
                  for (int scan = index+1; scan < list.length; scan++)
                     if (list[scan].compareTo(list[min]) < 0)
                        min = scan;
                  // Swap the values
                  temp = list[min];
                  list[min] = list[index];
                  list[index] = temp;
            public static void insertionSort (String[] list)
               for (int index = 1; index < list.length; index++)
                    String key = list[index];
                  int position = index;
                  //  Shift larger values to the right
                  while (position > 0 && key.compareTo(list[position-1]) < 0)
                     list[position] = list[position-1];
                     position--;
                  list[position] = key;
            }I'm still relativly new at this, so forgive me if there's something obvious that I'm missing.And thanks for any help anybody can give me.

    You haven't gotten to running the sort yet, so I didn't even check that the sort routine is correct.
    Your problem is:
    You say inputFile.hasNext() once, and then you read 1 line from it. Then, in your 'for' loop, you read 100 lines from it. So, you always attempt to read 101 lines, even if the file is shorter than that.
    You should call "hasNext" before each call to "readLine". Also, you probably want a "while" loop, instead of a "for" loop, since you don't know how many words you will have. I assume you are expecting 100 or less (based on your array size).
    Two more notes:
    1. Don't do "new String(inputFile.readLine())". All you need is:
    words= inputFile.nextLine();
    2. You don't need toString here:
    System.out.print(words[index].toString()+"\t");words[index] is already a String, and concatenating the "\t" to words[index] would create a String, anyway, no matter what type words[index] was. And, calling:
    System.out.print(words[index]);would also automatically call "toString", even if words[index] were not a String.
    You could avoid creation of new Strings by:
    System.out.print(words[index]);
    System.out.print("\t");Just make sure you add braces around them, if both lines are the body of a 'for' loop. You should also make the second 'for' loop into a 'while' loop, using a counter that you update as you read the lines--so that you don't process the "null" elements of the array. You also need to account for null elements in your sort method.

  • Help needed to locate missing files

    I'm still a Mac newbie so i'm really having trouble here.
    The capacity of my Mac is 27.94GB and i'm only left with with 749.8MB. The problem is i dunno where the used 27.2GB of stuff are????
    I've checked all the files like Applications, Library, users... each of them have barely over 1GB. So i'm really puzzled where the other GB are???? Where else can they be? I've cleared my Trashbin but that didn't help.
    Can anyone help?? I'm desperate...i'm running out of space!!

    From the Finder (click on the icon with the face in the dock), do a find. File->Find ...
    Use the drop down lists to select Size -> Greater Than -> xxx Mb
    Stick in a number say 100 Mb in the right hand box. Then do the find.
    It should list the large files on your system. This may or may not help. If the files are hidden/private OS ones they won't get listed.
    Another thing to try is an application called Onyx (or something similar).
    It helps clean up files on your system that might not be needed anymore - e.g. cache files, log files etc.. It would be worth running all the options on the 'Automate' tab/screen.
    You can get it from http://www.titanium.free.fr/

  • Help needed on .dcref extension files.

    Hi All,
    I am working on CRM 5.O and successfully imported the components.I find lot of files with .dcref extensions. Can some one tell me wat these files are which files we need to consider for enhancements. I am not able to locate a file with .jsp extensions..
    Any inputs on this will be very helpful.
    If you have any material regarding enhancements, please mail to [email protected]
    Thanks,
    Udaya.

    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Keyboard help needed for spreadsheet / excel files!

    When editing a spreadsheet / excel file, how do I keep the keyboard from switching back to numerical mode every time I press the space bar?  When entering text into a cell, I need the keyboard to stay locked in alpha mode.  I've tried both office hd and quick office, and in each one, every time I write a word and then press the space bar, it automatically goes back into the numerical keyboard mode.

    HI
    GOOD
    http://www.sapbrain.com/FunctionModules/fm_list.html
    THIS LINK CONTAINS THE SIMILAR REPORT AS PER YOUR REQUIREMNET.I HOPE THIS WILL HELP YOU TO KNOW DETAILS.
    THANKS
    MRUTYUN

  • HT204320 Help needed organsing my photo files in the new Photos program

    The new Photos application has reorganised all my picture files and displays them according to the EXIF data. As many of them were scanned from vintage sources a photograph taken in 1900 now turns up in the wrong place. In iPhoto I had the pictures sorted by file name so they were chronological. Can Photos sort my pictures according to the file name?
    I have also found that organising the pictures in Photos on my Macbook Pro does not mean they will retain that organisation when displayed on my iPad Mini 3 and iPhone6+. I have wasted so much time on this.
    I have already tried using 'EXIF Editor' and 'Photo Meta Edit' (both recommended by the Apple App Store) to change the EXIF data. After paying for these apps and spending many hours editing numerous picture files they have now spontaneously reset themselves to 1st January 1970. Aaaaaaargh. Two pictures of my great grandparents (taken in about 1900) now have a generated 'created on' dates for themselves of Monday 7th July, 2036.
    I need Photos to allow me to organise my pictures according to the file name. HELP!!!
    Geoff

    Moments in Photo are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Album/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • Help needed in Idoc To File Scenario

    Hi Experts,
    My scenario is Idoc to File.
    Here my job is to convert the purchase order idoc into xml file.
    In this there are three conditions.
                       converting the standard PO into xml file
    (ii)                 converting the PO with serial number  into xml file
    (iii)                converting the PO using serial number with subcontracting into xml file
    so what I feel is I need to create one scenario and based on the condition that particular PO will convert into xml file.
    Conditions:
                       if no condition is specified then it is standard PO first case
    (ii)                 if field tdline ne space then it is PO with serial number second case
    (iii)                if field pstyp eq 3 then it is PO using serial number with    subcontracting third case.
    Please guide how to do this scenario.
    IR:
    1)       how many data types I need to create
    2)       how many message types I need to create
    3)       how many message interfaces I need to create
    4)       how many message mappings I need to create
    5)       how many message interfaces I need to create
    ID:
    1)       how many receiver determinations I need to create
    2)       how many interface determinations I need create
    3)       how many receiver agreements I need to create
    And where to write the conditions at message mapping level or at receiver determination level.
    Kindly provide solution to every point.
    Regards,
    Venkat.

    1) if no condition is specified then it is standard PO first case
    2) if field tdline ne space then it is PO with serial number second case
    3) if field pstyp eq 3 then it is PO using serial number with subcontracting third case.
    you have to create
    1. outbound ( IDOC)
    2. 3 Inbound (same MT)
    create 3 mapping program each for 1 condition
    create 3 interface mappings
    ID:
    1 reveri BS.
    3 Interface determinations, so 3 receiver agrement.......
    you can put the condition on the mapping or in the condition tab of the interface determinations.

  • Help needed in creating WMV File

    Greetings...I have been given a 10:30 Beta copy of a project that needs to be converted into a .wmv file. I did not edit this project in FCP, however, it is a FCP edited project and still exists as a FCP project on another Mac Powerbook. It was just exported onto to Beta tape for TV playback purposes.
    The project needs to be converted to a .wmv and this is a new process for me. I've consulted my work books but am not quite sure as to the process. Do I save the project as a QuickTime Movie and then launch Compressor and import it? If so, I am in need of some direction as this is a new process to be learned...Are there any links/tutorials available that can guide me?
    Thank you.
    Thom

    Thanks for the Reply,
    I have been in touch with Craig over the last few days. The strange thing to me is that I use Sorenson Squeeze on the same system (with the WMV settings all exactly the same as I had set in Compressor) and the job completes 100% with no problems.
    As I told Craig at F4M, I don't think this is a F4M issue. Also, other jobs I submit via Compressor (ie, to .m2v for DVD authoring) work fine.

  • Urgent HELP Needed Compressing 24 fps file to DVD m2v

    I am working in a project where all the source footage is 24fps film (in 720x486 uncompressed 8 bit QT files). I have edited the footage in FCP6 with the sequence at matching settings to the source footage. Every thing good so far.
    I then export out a reference file of the final edit. Review the ref file and all is beautiful.
    The problem occurs with I use compressor to convert the 24 fps to m2v. I use one of Apples default settings (DVD Best Quality 90 Minutes), drop the setting on the clip in the asset window and verify the settings, which in the summary show frame rate of 23.976. OK. Submit.
    When the compression is complete, and I bring the new asset into DVDSP, the rate now shows 29.97 (open in QT confirms), and the clip stutters in play back.... i.e. dup frame every 5 frames. On the second try, I don't get dup frames, but I actually got frames dropped every few seconds. i.e. frame advance in DVDSP and the video would skip a frame. The later is extremely noticeable on panning shots.
    Can any one give me some advice on how to keep the video smooth and consistent with the original footage?
    Any help or suggestions would be EXTREMELY appreciated as this project HAS to go to press tomorrow.
    Thanks,
    Gary

    OK, After a very long night with no end near, I figured out the drop frames are the result of feeding 24fps into Compressor instead of 23.98.
    I took the footage conformed the clips to 23.98 and that particular problem was resolved....
    However, conforming introduced a whole new problem: When I conform the clips, 2 black frames are introduced at EXACTLY frame 7900. I have 4 tracks of similar footage, with different language tracks. There are English, French, Spanish and German sequences. The German track is edit differently than the other 3 due to very different timing in the translation. The other three are virtually identical to the point where the black frames are introduced.
    That being said, ALL 4 tracks have the black frames appear at frame 7900 regardless of the video content.
    These are NTSC (720x480 24 fps with uncompressed 8 bit video).
    Oddly enough, if I drop the NTSC sequence onto a PAL 24fps uncompress 8 bit sequence, the black frames do not seem to appear after the PAL tracks are conformed to 25 fps. I have not found any anyway....
    Any thoughts on why I am getting this problem?
    As a result, we have had to postpone the glass mastering, and needless to say, the producer is not at all pleased...
    Thanks for any input.
    Gary

  • HELP NEEDED - iTunes.exe -Corrupt File

    I am getting this error message everytime I plug in my iPod to update thru iTunes.
    iTunes.exe - Corrupt File
    The file or directory/iPod_ControliTunes/TempFile is corrupt & unreadable.
    Please run the Chkdsk utility.
    So my question is....how do I backup all the songs and playlists so that I do not lose them. And then do I just run the dist that came with the iPod to start it over again and if so do I delete the old Itunes?
    Plese help I would like to save the songs, restore iTunes somehow and be able to bring back the songs with nothing lost.

    In Windows, the default location of your songs is:
    \Documents and Settings\username\My Documents\My Music\iTunes
    Your 'iTunes library' file which hold all playlists, locations of songs, ratings etc. is located in:
    \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Library.itl
    Copy the complete iTunes directory to your backup device.
    That way, you will copy all songs and library information.
    After fixing the problem with the corrupt file, put the files back to the location they came from (if necessary).
    In my very limited experience with the chkdsk utility, no files were lost, but it is always wise to have a backup in case something goes wrong.
    Hope this helps.
    M
    P.S.
    You will probably get more help by posting in the iTunes for Windows forum (this is the Mac forum)
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.3.9)   Several ext. HD (backup and data)

Maybe you are looking for