There is a custom program which uses OPEN DATASET, TRANSFER, CLOSER DATASET commands to create a file, transfer the data and close the file respectively. I am checking SY-SUBRC value after each operations. Even though there are no failure in the above mentioned statements, sometimes the files are generating successfully and sometimes not.
Could somebody tell the reason?