tokerago13
Programmer
Hi Guys,
I need some advice on how to output some text unto UNIX.
What I intend doing in a loop is output data similar to what will be output when you run the query below:
select 'Staff ID'||','||
'First Name'||','||
'Last Name'||','||
'Email address'||','||
'Chrysalis Logon'||','||
'Directorate'||','||
'Division'||','||
'Cost Code'||','||
'Start Date'||','||
'Leaving Date'
from dual;
I am using the UTL file utility thus:
file_handle := utl_file.fopen (c_path, c_filename, 'W',20000);
--
v_input := 'Staff ID'||','||
'First Name'||','||
'Last Name'||','||
'Email address'||','||
'Chrysalis Logon'||','||
'Directorate'||','||
'Division'||','||
'Cost Code'||','||
'Start Date'||','||
'Leaving Date';
utl_file.put_line (file_handle, v_input);
utl_file.new_line (file_handle);
What happens is that I can't get the output to write in UNIX. BUt if I do truncate the characters to say, just the first two columns, it writes.
I would like to know how I can write the whole line successfully?
Any help will be greatly appreciated.
Thanks
T
I need some advice on how to output some text unto UNIX.
What I intend doing in a loop is output data similar to what will be output when you run the query below:
select 'Staff ID'||','||
'First Name'||','||
'Last Name'||','||
'Email address'||','||
'Chrysalis Logon'||','||
'Directorate'||','||
'Division'||','||
'Cost Code'||','||
'Start Date'||','||
'Leaving Date'
from dual;
I am using the UTL file utility thus:
file_handle := utl_file.fopen (c_path, c_filename, 'W',20000);
--
v_input := 'Staff ID'||','||
'First Name'||','||
'Last Name'||','||
'Email address'||','||
'Chrysalis Logon'||','||
'Directorate'||','||
'Division'||','||
'Cost Code'||','||
'Start Date'||','||
'Leaving Date';
utl_file.put_line (file_handle, v_input);
utl_file.new_line (file_handle);
What happens is that I can't get the output to write in UNIX. BUt if I do truncate the characters to say, just the first two columns, it writes.
I would like to know how I can write the whole line successfully?
Any help will be greatly appreciated.
Thanks
T