Scheduled agent replication using profile document

Hello

I have a series of databases which download data from an AS400.

I’d like to be able to set them to replicate at different intervals from each other by using a profile document.

At the moment all the agents run at the same time due to the time the agent is set in the template.

Locally scheduled mail replication looks at the location document so I assume it is possible - but I’m not sure where to look. I’ve had a search through this forum but I don’t know the correct terminology for what I am asking.

Any advise/help would be greatly appreciated.

Many thanks for your help.

Subject: RE: scheduled agent replication using profile document

Mail replication is not an agent. There’s no built-in facility to schedule agents based on a profile document. You have the following options:Write code to modify the agents whenever the profile is edited, and write in the correct times. This is easiest done by putting all the code in a script library so that you can just replace the whole agent by importing a little DXL data. You must also sign the agents.

Or, have a single agent that runs more frequently, checks the profile document to see what it’s time to do, and does that. To avoid loading unused code, it can use dynamic script library loading to bring in only the required code. You could probably even have the profile document state which is the required code. NOTE: be careful with this that you’re not enabling users who can simply edit the profile, to run code they write using an authority they otherwise do not possess.

Or, use LEI, which lets you create schedule documents to run agents at given times.