2009 Jul 08 1:11 PM
Hi Experts,
We have a program that runs fine in the foreground, but fails in the background mode.
In the program we create a file in the application server, enter some data and exit.
Kindly provide some suggestions.
Thanks and Regards,
Ravi Bhatnagar
Hi Experts,
We have a program that runs fine in the foreground, but fails in the background mode.
In the program we create a file in the application server, enter some data and exit.
Kindly provide some suggestions.
Thanks and Regards,
Ravi Bhatnagar
2009 Jul 08 1:13 PM
Select job in the sm37 and run JDBG transaction so you can debug background job and the find the problem . Also check st22 to see if there is any short dump.
Edited by: Gungor Ozcelebi on Jul 8, 2009 2:14 PM
2009 Jul 08 1:16 PM
Check the Application path passing correctly..
Check you are running in Foreground with Presentation server or Application server
prabhudas
2009 Jul 08 1:16 PM
Hi,
If you check the log of failure job, you will come to know the reason behind the job failure.
It could be because, forcefully they might have restricted in executing in batch mode or no authorization for opening the file in the background mode.
Regards,
Santhosh.
2014 Nov 20 11:04 AM
Hi Santhosh,
We have a similar situation in our production server.
Were all the batch job which involved in creating a file in AL11 directory and send via FTP later, gets failed.
Some batch job raise an exception in TRANSFER statement as File"\interfaces\***\***" cannot open.
Other batch jobs are not even getting dump but it is not creating the file in AL11 or creating after 12-24 hours later.
When we run the same in foreground. we everything runs perfectly without any error or exceptions.
Could you please advice.
It is pretty urgent as the production system is not sending file to other system.
Any help will be appreciated.
Thank you.
2009 Jul 08 1:17 PM
Dear,
Some programs will not run in background, some oops objects and HTML screens will not support background.
May be your getting an error of CNTL_ERROR. In that case for background job purposes you need to check the alternatives.
Thanks and Regards,
2009 Jul 08 1:21 PM
Hi,
we create a file in the application server
How are you doing this?
You have to use OPEN DATASET, TRANSFER, CREATE DATASET to work in background.
Regards,
Frisoni
2009 Jul 08 1:36 PM
Hi,
File creation is through program itself.
OPEN DATASET
TRANSFER
and CLOSE DATASET/
Thanks and Regards,
Ravi Bhatnagar
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |