Operating System - Microsoft
1825006 Members
2797 Online
109678 Solutions
New Discussion юеВ

Importing/Updating AutoSys global variable's value.

 
Moe Zeddy
New Member

Importing/Updating AutoSys global variable's value.

Hello,

I just started to work with AutoSys so I really don't know much about the system.

I am in the process of developing a VBScript which requires me to update value of a global variable belonging to AutoSys. We are using SQL databases.

Also, how can you import value of the AutoSys's global variable into VBScript (to be assigned to a VBScript variable such as Int, String, etc.).

Please provide code. Many thanks in advance.
2 REPLIES 2
Dave Hutton
Honored Contributor

Re: Importing/Updating AutoSys global variable's value.

How you set it in unix, and I'm assuming thats where you want to set it even though your talking about Visual Basic? I think on windows you have access to the sendevent command also.

Anyway, its just:
sendevent -E SET_GLOBAL -G "global_name=DELETE"

That was taking straight from the man page.

It wasn't that clear if you want to set the Global variable or you need to get the value of the global variable.

You get can the value by autorep -G global_name


Moe Zeddy
New Member

Re: Importing/Updating AutoSys global variable's value.

More information has been given to me now.

Following is the actual case:

The AutoSys is being run on Windows only.

When my VBScript (not Visual Basics) script is run, I will calculate the system time and format the date as required and update a global variable of the AutoSys with the formatted date.

Now, the problem is, when I update the global variable of AutoSys (i.e. GLOB_VAR), this is the scenario:

The global variable (GLOB_VAR) resides on a table belonging to AutoSys which holds only global variables.

I was told that I have to use JIL (Job Information Language) commands in order to run commands from my script to update the global variable BUT... the JIL is only run from command prompt.

In specific: How can you issue commands from your VBScript to get value of a global variable or to update the value of a global variable given the above scenario?

NOTE: We are using SQL Databases.

I apologize if I provided too much or too little detail. If more information is required, please let me know.

Thanks a lot everybody.