Wednesday, 27 March 2019

OPEN DATASET

Always it is best to give the entire path in AL11 directory. In the below, /tmp is the path and trace_vscan.txt is the text file name. REPORT ybtest1. *********************************************************************************************** Data : Trace1 TYPE string VALUE '/tmp/trace_vscan.txt', str TYPE string. OPEN DATASET Trace1 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. CONCATENATE 'Document ID : ' 'is being sent for virus scan.' into str SEPARATED BY Space. TRANSFER str to Trace1. CLOSE DATASET Trace1. below is the statement to delete the dataset. DELETE DATASET Trace1 .