Access OPC using REXX

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Access OPC using REXX

Post by Anithab »

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?
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Access OPC using REXX

Post by Anuj Dhawan »

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:
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.
Also you can search TWSxxx.SEQQSAMP for REXX examples . You've to use HLQ for Your shop.
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.
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access OPC using REXX

Post by Anithab »

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
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access OPC using REXX

Post by Anithab »

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?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Access OPC using REXX

Post by zprogrammer »

You could try

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")      
refer

http://pic.dhe.ibm.com/infocenter/zos/v ... exlogx.htm
zprogrammer
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

Re: Access OPC using REXX

Post by Anithab »

Hi Pandora,

I did some minor adjustments and the code works perfect for me :)

Thanks all
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Access OPC using REXX

Post by zprogrammer »

Glad it helped..Thanks for letting us know :)
zprogrammer
Post Reply

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

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”