DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Specifying spaces with utl_file.put_line

  1. #1
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187

    Specifying spaces with utl_file.put_line

    The following how could replace my commas with a designated number of spaces, it 10 spaces, or 5 spaces for simply readability of the output

    utl_file.put_line(v_output_file1, cursor_emp.empno || ',' || cursor_emp.ename || ',' || cursor_emp.deptno);
    I'm stmontgo and I approve of this message

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    You mean like ...
    Code:
    utl_file.put_line(v_output_file1, RPad(cursor_emp.empno,10) || RPad(cursor_emp.ename,30) || RPad(cursor_emp.deptno,10));
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    yeah that would it thanks, i was thinking of something like an ASCII equiviant but the rpad would work just as well , tks dave
    I'm stmontgo and I approve of this message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width