Table of Contents

HANA - Job

About

To schedule a job against HANA, you may choose:

Solution

Scheduler

Take your favorite scheduler and execute the following statement:

hdbsql -n host:port -u userName -p pwd "call myProcedure(myVariable)"

XS

XSJOBs can directly call a Stored Procedure as well as XSJS services created in an XS application.

Enable

Enable the job scheduling feature in SAP HANA.

System -> xsengine.ini -> scheduler -> enabled.

XSJob

{
    "description": "Call my Sqlscript procedure",
    // Javascript
    "action": "<package_path>:<XSJS_Service>.xsjs::<FunctionName>"
    // Example: "action": "yahoo:yahoo.xsjs::readStock",
    // SqlScript
    "action": "<package_path>:SqlScriptName"
    // HANA Procedure (???)
    "action": "<package_path>:ProcedureName"
    // "action": "playground.sp7.procedures::jobsCreateEntry", 
    "schedules": [
       {
          "description": "Read current stock value",
          "xscron": "* * * * * * 59",
          "parameter": {
             "stock": "SAP.DE"
             }
       }
    ]
}

Documentation / Reference