I have an issue in writing flat file for more than 32767 bytes..
here is my source code.. please suggest ..Can it be modified that 32768th byte is written in next line and so on..
please help
CODE
declare
cursor c1 is select XDATA from t1 where
v2 CLOB;
v_file UTL_FILE.FILE_TYPE;
count1 number :=1;
begin
v_file:=utl_file.fopen('DIR','F1','w',32767);
for c2 in c1
loop
count1 :=count1 +1;
v2:=c2.xdata.getclobval();
utl_file.put_line (v_file,v2);
end loop;
utl_file.fclose(v_file);
count1:= count1 -1;
end;
cursor c1 is select XDATA from t1 where
v2 CLOB;
v_file UTL_FILE.FILE_TYPE;
count1 number :=1;
begin
v_file:=utl_file.fopen('DIR','F1','w',32767);
for c2 in c1
loop
count1 :=count1 +1;
v2:=c2.xdata.getclobval();
utl_file.put_line (v_file,v2);
end loop;
utl_file.fclose(v_file);
count1:= count1 -1;
end;
thanks a lot