I have also scheduled a background job. Through SE38 the program runs easily and save output to our ZTABLE. Problem is that when we scheduled this program in background. I have paste my code snippets and also the cases which I try before posting of my question.
OPEN DATASET file FOR INPUT IN BINARY MODE.
(i ahve also tried it by using OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT)
IF sy-subrc = 0.
READ DATASET file INTO l_line.
IF sy-subrc <> 0.
********store lines in an internal table.
CLOSE DATASET file.
Point2 : When I execute the program through SE38 then 'open dataset' gives sy-subrc = 0 and also read dataset gives sy-subrc = 0.
Our file which i accessed though open dataset, put at server (dir_home). I have full authorization on that directory and its folders and sub folders.
Point3: As the program executed through se38 so i think its not abap syntactical program. DIR_HOME is based on UNIX which I executed from R/3.
Point4: After scheduling the job, our program executed successfully once and after that its give dump.
**my question is that, is it possible if the program executed normally ( through SE38) then is there any disruption occurred during background scheduling.
Please tell me the logic behalf of your answer.