Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background Job

Former Member
0 Likes
904

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

7 REPLIES 7
Read only

former_member194416
Contributor
0 Likes
870

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

Read only

Former Member
0 Likes
870

Check the Application path passing correctly..

Check you are running in Foreground with Presentation server or Application server

prabhudas

Read only

Former Member
0 Likes
870

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.

Read only

0 Likes
870

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.

Read only

Former Member
0 Likes
870

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,

Read only

guilherme_frisoni
Contributor
0 Likes
870

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

Read only

0 Likes
870

Hi,

File creation is through program itself.

OPEN DATASET

TRANSFER

and CLOSE DATASET/

Thanks and Regards,

Ravi Bhatnagar