Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



qName and scriptArg values for Cron Task Automation Script

From: Venkat.biet (2018-02-12 15:28)

Hi All,
Can you please let me know how to get qName and scriptarg values in automation script ?

I have defined a cron task that will launch my automation script. How do I retrieve the value of scriptArg that I have set in cron task instance parameter in automation script ?

I am getting below error when i use the variable scriptArg to retrieve the value as below
print 'ScriptArg' + scriptArg
NameError: name 'scriptArg' is not defined in <script> at line number 20

Also IBM site https://www.ibm.com/support/knowledgecenter/en/SSLKT6_7.6.0/com.ibm.mt.doc/autoscript/r_vars_cron_scripts.html https://www.ibm.com/support/knowledgecenter/en/SSLKT6_7.6.0/com.ibm.mt.doc/autoscript/r_vars_cron_scripts.html say I can use qName which is implicit variable to get Name of the cron task instance that is running the automation script as a cron task and I am getting error even for that
print 'qName' + qName
NameError: name 'qName' is not defined in <script> at line number 20


Has anyone tried use these variables ?



From: Venkat.biet (2018-02-20 23:16)

This has been resolved.
If anyone interested to know refer to the below post:

https://www.ibm.com/developerworks/community/forums/html/topic?id=0f033cc8-57c6-401a-a65c-65ab805f070e https://www.ibm.com/developerworks/community/forums/html/topic?id=0f033cc8-57c6-401a-a65c-65ab805f070e