Implemented. Thanks for yoru idea Eric.
curl -G -s -H "accept:text/csv" -H $token "http://localhost:6405/biprws/raylight/v1/documents/$docid/reports/1" >>/tmp/file1.csv
exporting schedule report to CSV in BO 4.1 SP5. report has close to 1 million records.
it is generating empty file in the path. I tried excel ,pdf and xml , I got all empty files. Any Idea??