Access OPC using REXX
Moderator: mickeydusaor
Access OPC using REXX
Hi all,
Is it possible to retrieve all the error jobs listed in OPC for a particular controller using REXX or by someother means than reading it manually?
Is it possible to retrieve all the error jobs listed in OPC for a particular controller using REXX or by someother means than reading it manually?
- Anuj Dhawan
- Founder
- Posts: 2802
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Access OPC using REXX
I do not have a direct answer to your question but I just red about OPC Control Language tool. And this quote from the manuals might be of your interest:
Also you can search TWSxxx.SEQQSAMP for REXX examples . You've to use HLQ for Your shop.The OPC Control Language (OCL) tool enables you to access and manipulate Tivoli OPC data by using a REXX-like language. Several macro-functions are made available that perform, in a single action, what would require several invocations of the OPC Program Interface functions. The OCL tool acts as an extension to the REXX language processor. Therefore, normal REXX statements can be coded together with OCL statements. This tool runs in a batch TSO session.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: Access OPC using REXX
Is it possible to read the OPC 5;4 error screen and get its current content through REXX?
I did search the SEQQSAMP but not much help in there
I did search the SEQQSAMP but not much help in there
Re: Access OPC using REXX
I did some further reading ...I found that EQQE036I messages needs to be trapped
And I also see this I might need to pick message which has ">>EQQE036I" because they have the return code of the job
Now my next question is how to print the data from SYSLOG?
And I also see this I might need to pick message which has ">>EQQE036I" because they have the return code of the job
Now my next question is how to print the data from SYSLOG?
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Access OPC using REXX
You could try
refer
http://pic.dhe.ibm.com/infocenter/zos/v ... exlogx.htm
Code: Select all
/* REXX */
rc=isfcalls('ON')
isflinelim=10000
Address SDSF “ISFLOG READ TYPE(SYSLOG)"
do ix=1 to isfmsg2.0
say isfmsg2.ix
end
do ix=1 to isfline.0 /* Process the returned variables */
say isfline.ix
end
isfcalls("OFF")
http://pic.dhe.ibm.com/infocenter/zos/v ... exlogx.htm
zprogrammer
Re: Access OPC using REXX
Hi Pandora,
I did some minor adjustments and the code works perfect for me
Thanks all
I did some minor adjustments and the code works perfect for me
Thanks all
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute