Sending a File Generated by .rjob
Data Services can serve a data file that was just created by the .rjob
logic.
For example, you can create a spreadsheet, save it into a file and send the file back to the user as a result of the transformation.
To return the generated file, write data into a temporary file in the same way as you do in an ordinary graph. In the Output component, set Format to file and enter the location of the generated file.
When you are saving the data to a temporary file, use ${RUN_ID}
parameter as a part of file name to avoid overwriting the file by the .rjob
serving the parallel query.
E.g.
use ${DATATMP_DIR}/result-${RUN_ID}.xlsx
as a filename.