Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
Communities
All Communities
Enterprise Software
Mainframe Software
Symantec Enterprise
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
Events
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Water Cooler
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
Members
AppWorx, Dollar Universe and Sysload Community
Private Community
View Only
Community Home
Threads
Library
Events
Members
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
Read vara values from JAVA API?
Jump to
Best Answer
Abhi
Nov 05, 2019 09:53 AM
Hi, I just want to know by using java API can we read an VARA in Automic Engine UC4 and print those ...
Stephan Schratzberger
Nov 06, 2019 10:53 AM
Best Answer
Hi, if you want to use the Java API to read a VARA and write its contents into a text file you can ...
1.
Read vara values from JAVA API?
0
Recommend
Abhi
Posted Nov 05, 2019 09:53 AM
Reply
Reply Privately
Options Dropdown
Hi,
I just want to know by using java API can we read an VARA in Automic Engine UC4 and print those values in a txt file or excel sheet..
Thanks in advance :)
Looking forward for the reply.
Thanks & Regards,
Abhi
2.
RE: Read vara values from JAVA API?
Best Answer
0
Recommend
Stephan Schratzberger
Posted Nov 06, 2019 10:53 AM
Reply
Reply Privately
Options Dropdown
Hi,
if you want to use the Java API to read a VARA and write its contents into a text file you can do this within a Java Programm - for this look at the API reference (
https://docs.automic.com/documentation/webhelp/english/AWA/12.2/AE/12.2/API/index.html
) you will need to use the following requests:
OpenObject to open the VARA Object
Then cast the UC4Object you receive from the OpenObject Request (after the request call getUC4Object() on the request instance) to a Variable object
The Variable object provides getter for all the properties and you can write the data into a txt file
then call CloseObject - because otherwise the objects stays open and locked by the user used to read it
If you want to write the contents of a VARA into a txt file using Automic itself - you could do this either by calling
GET_VAR and read the desired data (
https://docs.automic.com/documentation/webhelp/english/AWA/12.2/DOCU/12.2/AWA%20Guides/help.htm#Script/Reference/GET_VAR.htm?Highlight=GET_VAR
)
or by using PREP_PROCESS_VAR to iterate through the VARA (
https://docs.automic.com/documentation/webhelp/english/AWA/12.2/DOCU/12.2/AWA%20Guides/help.htm#Script/Reference/PREP_PROCESS_VAR.htm?Highlight=PREP_PROCESS_VAR
)
and use a Unix or Windows Job to write the data into a file
I hope this answers your question.
Regards
Stephan
Original Message
Original Message:
Sent: 11-05-2019 01:17 AM
From: Abhi T
Subject: Read vara values from JAVA API?
Hi,
I just want to know by using java API can we read an VARA in Automic Engine UC4 and print those values in a txt file or excel sheet..
Thanks in advance :)
Looking forward for the reply.
Thanks & Regards,
Abhi
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Copyright 2019. All rights reserved.
Powered by Higher Logic