SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
GET command

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
GET command
Author Message
Tim



Joined: 09 Oct 2001
Posts: 36

Post GET command Reply with quote

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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: GET command Reply with quote

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 View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: GET command Reply with quote

: 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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: GET command Reply with quote

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 View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: GET command Reply with quote

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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: GET command Reply with quote

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 View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: GET command Reply with quote

: 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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.