Author |
Message |
Tim
Joined: 09 Oct 2001 Posts: 36
|
|
GET command |
|
Hi, throughout the Userguide and JAL reference, there is reference to the "GET command" however, i cant find anywhere, an example of what it does or how to use it. Can you help me out?
|
|
Tue Nov 09, 2004 10:56 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: GET command |
|
The "GET" command is part of the DDE-based API (application program interface). It can be used to query job properties from applications supporting DDE methods for communicating with 24x7 Scheduler. The actual command name and syntax depend on the calling application, for example in VB it is DDEGet. What are you trying to do? : Hi, throughout the Userguide and JAL reference, there is reference to the : "GET command" however, i cant find anywhere, an example of what : it does or how to use it. Can you help me out?
|
|
Tue Nov 09, 2004 11:12 pm |
|
 |
Tim
Joined: 09 Oct 2001 Posts: 36
|
|
Re: GET command |
|
: The "GET" command is part of the DDE-based API (application program : interface). It can be used to query job properties from applications : supporting DDE methods for communicating with 24x7 Scheduler. The actual : command name and syntax depend on the calling application, for example in : VB it is DDEGet. : What are you trying to do? is it possible to call the DDEGET command within 24x7 scheduler as vbscript? i want to be able to retrieve information about a job from the job itself. Like i want to be able to script something (preferably in JAL), which lets the job gets the properites of the itself, such as job number and start_time
|
|
Wed Nov 10, 2004 12:01 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: GET command |
|
VBScript does not support DDE. For the ID of the currently executing job you can use @V"job_id" macro-parameter. For all other job properties you can use either JAL or 24x7 COM API. COM API can be called from VBScript jobs running with "detached" option. However to use the COM component you would need a separate 24x7 license, because internally it will behave as a separate client application connecting to 24x7 server. JAL can be used either directly in JAL jobs or indirectly vai JALScript.Execute method available in VBScript jobs. I nthe last case the called JAL script can save returned values in some file or registry and then the caller VBScript job can read them from that file. Hope this helps. : is it possible to call the DDEGET command within 24x7 scheduler as vbscript? : i want to be able to retrieve information about a job from the job itself. : Like i want to be able to script something (preferably in JAL), which lets : the job gets the properites of the itself, such as job number and : start_time
|
|
Wed Nov 10, 2004 12:27 am |
|
 |
Tim
Joined: 09 Oct 2001 Posts: 36
|
|
Re: GET command |
|
Hi, thanks for that. Can you provide an example of using JAL? : VBScript does not support DDE. : For the ID of the currently executing job you can use @V"job_id" : macro-parameter. For all other job properties you can use either JAL or : 24x7 COM API. COM API can be called from VBScript jobs running with : "detached" option. However to use the COM component you would : need a separate 24x7 license, because internally it will behave as a : separate client application connecting to 24x7 server. JAL can be used : either directly in JAL jobs or indirectly vai JALScript.Execute method : available in VBScript jobs. I nthe last case the called JAL script can : save returned values in some file or registry and then the caller VBScript : job can read them from that file. Hope this helps.
|
|
Wed Nov 10, 2004 12:34 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: GET command |
|
Dim job_start_date // the following returns start date for job #12 JobDescribe(12, "START_DATE", job_start_date) // the following returns start date for the current job JobDescribe(@V"job_id", "START_DATE", job_start_date) : Hi, thanks for that. : Can you provide an example of using JAL?
|
|
Wed Nov 10, 2004 1:16 am |
|
 |
Tim
Joined: 09 Oct 2001 Posts: 36
|
|
Re: GET command |
|
: Dim job_start_date : // the following returns start date for job #12 : JobDescribe(12, "START_DATE", job_start_date) : // the following returns start date for the current job : JobDescribe(@V"job_id", "START_DATE", job_start_date) ok thankyou. problem solved.
|
|
Wed Nov 10, 2004 1:37 am |
|
 |
|