Hi RW9,
Thanks for your answer.
But I have one more issue that appeared with your solution.
I have a dataset that contains more columns. You can create it using this script.
data test;
col1 = 0;
col2 = 1;
col3 = 2;
col4 = 3;
col5 = '';
col6 = 'ThisIsTestStringThatIsCuttedSomehow';
col7 = '';
col8 = 4567;
col9 = 8;
col10 = .;
col11 = 'TestString';
col12 = 9;
col13 = 10;
col14 = 'TestStringWith"Quotation"Marks';
run;
So, if I use your solution it cuts out part of the string in column "col6".
Funny thing is when I change value of the "col1" to something else except 0, string in "col6" will not be cutted.
Below is the script that I used:
option missing='';
data tmp1;
length line $32767;
set test;
file "...\test.csv" dlm="," lrecl=32767;
line = cats(col1,",",col2,",",col3,",",col4,",",col5,",",col6,",",col7,",",col8,",",col9,",",col10,",",col11,",",col12,",",col13,",",col14);
put line;
run;
Hopefully, you have some other solution or know how to fix that.
... View more