cancel
Showing results for 
Search instead for 
Did you mean: 

How to schedule a job once in a month in SAP IDM7.2

Former Member
0 Kudos

Hello Experts,

How to schedule a job once in a month in SAP IDM7.2.

Thank you

Ranjan

Accepted Solutions (0)

Answers (3)

Answers (3)

Steffi_Warnecke
Active Contributor
0 Kudos

@Matt & Dominik

I also thought about creating a script to achieve this, but thought it waaaay more complicated than you guys are now showing me it has to be. D'oh! I wish I had asked this question myself two years ago.

Thank you, Ranjan, for bringing it up! Now I have something new to use, too!

@Matt: Looks like I really need to dive into your IDM Thoughtplace. I bet I'll find some more solutions to current annoyances.

Regards,

Steffi.

former_member2987
Active Contributor
0 Kudos

Steffi,

There's all kinds of fun stuff there.  I started blogging so that I had a place to "remember" everything I learn / do. Once I got into SCN I moved most of my stuff here, but I didn't want to SPAM / Crosspost3 blog entries.

I do update IDM Thoughtplace from time to time, usually non SAP IDM stuff (other technologies, project management or higher level Identity Management stuff) or where I need to have some "separation" from an official SAP stuff to vent an opinion or too.

But yes, that script seemed to address a small lack in IDM.  I should test it in IDM 8 since scheduling seems to be somewhat limited from what I've heard.

Matt

Chenyang
Contributor
0 Kudos

Hi,

I think you can schedule a job to run daily and check the last execution date, then decide whether the job should be continue or not.

Cheers

Chenyang Xiong

former_member201064
Active Participant
0 Kudos

I have this script in usage in the first pass (ToGeneric) of a batchjob  which is scheduled daily at midnight:

Source:

Empty

Destination:

ACTUAL_DATE %$ddm.date8601%

Script:


function knf_local_stopIfNeeded(Par){

  var actualDate = Par.get("ACTUAL_DATE") + "";

  actualDate = actualDate.substring(5)

  if (actualDate != "01-01" && actualDate != "02-01" && actualDate != "03-01" && actualDate != "04-01" &&

  actualDate != "05-01" && actualDate != "06-01" && actualDate != "07-01" && actualDate != "08-01" &&

  actualDate != "09-01" && actualDate != "10-01" && actualDate != "11-01" && actualDate != "12-01"){

  uWarning("STOP due to not defined run date")

  uStop("STOP due to not defined run date");

  }

}

jaisuryan
Active Contributor
0 Kudos

Hi Ranjan,

Request you to read the documentation or check google before posting in here.

Take a look at Configuring job options and Defining job scheduling

In options tab, scheduling field will have a option "Monthly" in drop down.

Kind regards,

Jai

Former Member
0 Kudos

Hi Jai,

I have gone through the docs. May be the question is misunderstood. Can u please let me know how to create Monthly schedule rule. I know how to do once in a week, day, hour. but how to do monthly.

Thank you for your quick response.

Ranjan

jaisuryan
Active Contributor
0 Kudos

Hi Ranjan,

I thought IDM comes with standard "monthly" scheduling rule. Please check the options in scheduling tree node Management or check the options in drop down in scheduling field of the Job. I will check in the system tomorrow.

Kind regards, Jai

Steffi_Warnecke
Active Contributor
0 Kudos

Hello Ranjan & Jai,

since I also have some jobs that I'd love to schedule monthly, I searched for a possibility some time ago and found none.

Maybe this is something new in IDM 8.0 (where, as far as I know, there are only preset scheduling rules and you can't create custom ones, so maybe they finally put a "monthly" option in there), but in IDM 7.2 (I'm on SP 😎 you only have this:

For the frequency-type the highest unit is "hour", so even there no chance to be creative, because you have the 24 hour timeframe in which is will run.

In short: I haven't found a way to go beyond "once a week" when it comes to the time gap. 😕

Regards,

Steffi.

Former Member
0 Kudos

Yes Steffi . Agree with you.

former_member2987
Active Contributor
0 Kudos

Hi Ranjan,

Take a look at this script I developed way back when, IdM Thoughtplace: Fitting It Into the Schedule.

I hope it helps you. Not sure if you're running IDM 7 or 8, but it should point you in the right direction.

Good luck!

Matt

jaisuryan
Active Contributor
0 Kudos

Apologies Ranjan.. I did not check the system before I posted this. May be I was confused with 'Midnight'

psst

Regards,

Jai