I have some jobs scheduled on the SAP system. I want to execute the SAP jobs or modify the timings of the jobs. How can I execute the jobs.
I know how to connect to SAP system via .net connector.
RfcDestination dest = RfcDestinationManager.GetDestination(rfcConfigParams);
RfcRepository repository = dest.Repository;
IRfcFunction rfcFunc = epository.CreateFunction("TH_GET_USER_LIST");
fcFunc.Invoke(dest);
This way I can Call the function module, but don't know how to call SAB jobs.
There is a full API available to manage jobs externally. Look at function modules starting with "BAPI_XBP_JOB".
You can start a job with "BAPI_XBP_JOB_START_IMMEDIATELY" or "BAPI_XBP_JOB_START_ASAP".
Related
I want to create a scheduler using JobRunr that will run in two different server. This Scheduler will select data from SQL database and will call an api endpoint. How can I make sure these 2 schedulers running in 2 different server will not pick same data from database ?
Main concern is they should not call the API with duplicate data from 2 different server.
As per documentation JobRunr will push the job in the queue first, but I am wondering how one scheduler queue will know that the same data has not picked by other scheduler in different server, is they any extra locking mechanism I need to maintain ?
JobRunr will run any job only once - the locking is already done in JobRunr itself.
I have a job of running certain set of queries on daily basis to fetch data from my datbase. Queries are run on sas enterprise guide.
So basically I need to automate this process.Please suggest some code so that automatically at a particular time of the day, these queries are automatically run and I get my data.
Enterprise Guide help for "Scheduling projects and process flows" describes the steps needed.
Automating Projects
Scheduling projects and process flows
In SAS Enterprise Guide, you can use the Microsoft Windows Task Scheduler to schedule projects and process flows to run at a specified time or as the result of a system event. By default, when you open the Task Scheduler, a script is automatically created in SAS Enterprise Guide to run the project or process flow. When you schedule the project or process flow, the Task Scheduler creates a scheduled task that includes the script and the criteria that specify when the task should be run. The scheduled task is added to the project tree.
Note You must save the project to your local computer before you can create a scheduled task.
is this possible to submit TWS schedule or run TWS schedule on specific AGENT
e.g currently TWS dynamically select AGENT [AGENT A] and run jobs, how can we specifically select AGENT [AGENT B] and run schedule job on that
This is not a native scenario, but you can look at a some different ways to address that.
Schedule workstation is not relevant, what you need to change is the job workstation only.
You can use:
Rest APIs
Run a query on job stream definition to get the id: POST /model/jobstream/header/query
Generate a new temporary instance for the job stream: POST /plan/current/jobstream/{jobstreamId}/action/make_jobstream
Modify the returned JSON replacing the job workstations
Submit the modified instance: POST /plan/{planId}/jobstream/action/submit_jobstream
Use pools
If you actually want to move all jobs from one agent to another, you can use pools workstations and change the actual agents in the pool: changing members for static pools, or moving a logical resource for dynamic pools
Clone the definition
Another option is to clone the definition with composer or using workload application templates and then submit the cloned definition. If you want you can remove the cloned definition after the submission.
I would like to automate, via the SoftLayer API, the configuration of an Evault Backup system -- configure the agent, create a job, set the file selection to backup, create the schedule. I can't find any structures that seem to contain that information to create the configuration (except for creating a schedule). Does anyone know if the items needed are available using the SoftLayer API?
To try to get a better picture of related underlying structures, I went via the GUI and created an agent, jobs, and schedule and see that the backups for that are running. I can use the Soflayer API to then query some things -- the job details (job name/description, last run date result), agent status, but cannot seem to query the schedules or replication schedule, nor any of the Agent configuration information beyond its status.
What I know, with the Softlayer API you only will able to get information about the Evault, to configure the device you need to use the WebCC client.
I have a job which i want to work as scheduler.
I found that there is an option for scheduling a job in pentaho 5.0 from the start step input
which has scheduling options for interval/day etc..
But my question is will the scheduling happen even if i close the pentaho i.e spoon window?
Or should it be up always?
You have to look into how to create cron-job or screen in linux for the same, means you have to start your job in back-ground so it never die.
So in windows such facility is not available so in windows your tool should be up all the time for executing batch process.
Scheduling takes place at the Data Integration server level. If you don't have a DI server running you need to schedule it using the OS scheduling facility (task manager on Windows or cron) and call the job or transformation by using kitchen or pan, resp.