Hi, I have a HTML file that contains a call to some macro display_tab_rows that generates the rows of a javascript table : ------- <html> <head> <script type="text/javascript" > var tab=[ %display_tab_rows; ]; function doSomething() { ...} </script> </head> <body> ... </body> </html> ---- Now this macro is defined as follows /* 1 - first macro to generate the rows */ %macro create_tab_rows(value); proc sql; SELECT count(*), cats('["',x,'", "', y,'", "' z,'"]) INTO :nrows, :lst_rows SEPARATED BY '@' FROM a_sas_dataset WHERE t=&value.; quit; %mend; /* 2 - second macro for their display */ %macro display_tab_rows; %local i; %do i=1 %to &nrows.; %let row=%scan(%quote(&lst_rows.),&i.,'@'); %if &i.<&nrows. %then %do; &row., %end; %else %do; &row. %end; %end; %mend; Finally, the real HTML file is created by the program data _null_; file _webout; infile ref_to_my_html_file; input; _infile_ = resolve(_infile_); put _infile_; run; My problem is that the rows are all written on the same line of the output file and the result is truncated after the 256th character. I would like to write each row on a new line but AFAIK there is no escape character for this in macro language. I tried "option LRECL=32767;" to remove the output length limitation but it only works locally. Any idea to either avoid the truncation or insert newlines in macro language ? Thanks
... View more