Skip to Content

SAP CPS keep clause

Hi All,


Could you please clarify the below question.


1. We are planning to keep old jobs of a job definition along with OUTPUT files for 45 days. We want to keep job history(like start and end times) without output files for 2 years.Please advise how can we acheive this?


2. If I specify 45 days in the keep clause of each and every job definition. Is it going to delete only the old jobs along with job output files  or is it going to delete complete job history greater than 45 days?.

3. Is it ok to specify the keep clause on a job chain instead on the child jobs or do I need to specify keep clause for child jobs too?


4. Instead of specifying 45 days in the keep clause of each and every job definition, how can I do this system wide?. Please advise.

Thank you in advance.

Regards,
Ramana

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 06, 2015 at 12:01 AM
    1. I don't recall any default way to have keep clauses based on file output. So i dont think it is possible.
    2. It will delete both the job history and the output file after 45 days.
    3. The job chain keep clause has priority over job definition. If job chain has keep clause set to 10 days and job definition set to 20 days, both parent and child job are deleted after 10 days. You can override this by checking "Keepforce" option in job definition. Its up to you to decide how you want to manage it.
    4. Create a system_Defaults_system job chain and set the keep clause and save the job chain. You dont have to add any steps or jobs to it. It will set the keep clause globally.
    5. You can refer System-Wide keep clause in admin guide.

    thanks

    Nanda

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 06, 2015 at 02:43 PM

    Hi All,

    Is there anyone here who knows how to set Keep Amount via script.

    I'm trying to modify keep clause of thousand jobs but no idea on how to get keep amount value and set it to jobs.

    Advance thanks!

    regards, Alyssa

    Add comment
    10|10000 characters needed characters exceeded