Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8491

Re: JOB Chain Name

$
0
0

Hello Gerben,

 

Below is my requirement. This job has to run at a specific time daily.

 

1. Checks if the file is created. If the file is created..continues to step 2. Else the step should error.

 

2. Run the ABAP program

 

3.This step checks again any more files exists. If the files exist..step2 should run again...If the file don't exist, job should not error. The looping needs to be done until there are no more files left. After no more files left, then the job should run next day.

 

 

File check is done on a windows share where there is no agent installed. For this scenario, I am not able to use the final status handlers as the step 3 should not error if there is no file.

 

So I wrote a post running action on the job definition level of step 3.

 

In the step 3, I wrote a windows command which checks for the file. If not exist....returns a zero return code and the job is marked as successfully completed.

 

If the step 3 returns a non zero return code for the file exist. Then in the post running action. I am marking the step 3 as completed and resubmitting the job chain using the above code.

 

 

Please advise.

 

 

Regards,

Ramana


Viewing all articles
Browse latest Browse all 8491

Trending Articles