cancel
Showing results for 
Search instead for 
Did you mean: 

call hdbcons in a xsjs project

0 Kudos


Hi All ,

I have a scenario , i need to call hdbcons in a xsjs project to run some hdbcons commands . How can i do that ?

My main purpose is to run mm -gc f command through XSJS .

Thanks

Amit

Accepted Solutions (0)

Answers (2)

Answers (2)

lbreddemann
Active Contributor
0 Kudos

As note 1999997 clearly states, this command (used to manually trigger garbage collection), should be used in exceptional cases only.

Building an application to do just that seems to be the exact opposite approach and I'd say it increases the chances to cover up bugs or problems much longer.

That way these issues won't be solved as quick.

Having said all that, you might consider checking how SAP HANA Studio runs hdbcons commands via JDBC. Maybe this gives you an idea how to run commands pro grammatically

- Lars

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't call a command line tool from XSJS.  Instead I would suggest trying to find if there is a View or SQL command that can accomplish the same thing you get via the hdbcons command.