Skip to content

Commit 28a3c14

Browse files
Merge branch 'sap-tutorials:master' into master
2 parents fa49d99 + 1c620d8 commit 28a3c14

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

tutorials/hana-dbx-create-schema/hana-dbx-create-schema.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,22 @@ Another option for data that is accessed less frequently is the SAP HANA Data La
630630

631631
For additional details see [Procedures](https://help.sap.com/viewer/d1cb63c8dd8e4c35a0f18aef632687f0/cloud/en-US/d43d91578c3b42b3bacfd89aacf0d62f.html).
632632

633+
6. Procedures can also be scheduled in SAP HANA Cloud. Schedule a job using the code provided below.
633634

634-
>Procedures can also be scheduled in SAP HANA Cloud. An example follows. For additional details see [Scheduling Administrative Tasks](https://help.sap.com/viewer/f9c5015e72e04fffa14d7d4f7267d897/latest/en-US/be4c214b87e54a08bd8047f6149645ec.html) and [CREATE SCHEDULER JOB Statement](https://help.sap.com/viewer/c1d3f60099654ecfb3fe36ac93c121bb/latest/en-US/d7d43d818366460dae1328aab5d5df4f.html).
635-
>
636635
```SQL
637636
SELECT CURRENT_DATE, CURRENT_TIME FROM DUMMY; --be sure to schedule an event in the future
638-
CREATE SCHEDULER JOB GEN_RESERVATIONS_JOB CRON '2021 12 23 * 14 25 0' ENABLE PROCEDURE RESERVATION_GENERATOR PARAMETERS numtogenerate=10;
637+
CREATE SCHEDULER JOB GEN_RESERVATIONS_JOB CRON '2023 04 26 * 14 25 0' ENABLE PROCEDURE RESERVATION_GENERATOR PARAMETERS numtogenerate=10;
639638
SELECT * FROM SCHEDULER_JOBS WHERE SCHEDULER_JOB_NAME = 'GEN_RESERVATIONS_JOB';
640639
```
640+
![Create Scheduled Job](schedule_job.png)
641+
642+
Details about the scheduled job can also be viewed including its properties, parameters, history, and CREATE statement by opening the **Job Scheduler** in the Catalog Browser and clicking on your scheduled job. Ensure you are filtering by the HOTEL schema. Additionally, you have the ability to disable/enable the scheduled job.
643+
644+
![View Scheduled Job](view_job.png)
645+
646+
For additional details see [Scheduling Administrative Tasks](https://help.sap.com/viewer/f9c5015e72e04fffa14d7d4f7267d897/latest/en-US/be4c214b87e54a08bd8047f6149645ec.html) and [CREATE SCHEDULER JOB Statement](https://help.sap.com/viewer/c1d3f60099654ecfb3fe36ac93c121bb/latest/en-US/d7d43d818366460dae1328aab5d5df4f.html).
647+
641648

642649
### Knowledge check
643650

644-
Congratulations! You have now created tables and inserted data, as well as created partitions, views, functions, and stored procedures.
651+
Congratulations! You have now created tables and inserted data, as well as created partitions, views, functions, stored procedures, and scheduled jobs.
Loading
86.5 KB
Loading

0 commit comments

Comments
 (0)