Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
CICS abend automation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
Soundammal.S

New User


Joined: 05 May 2008
Posts: 13
Location: Chennai

PostPosted: Tue Aug 26, 2008 3:14 pm    Post subject: CICS abend automation
Reply with quote

We are in the automation of extracting log from spool and we will find for a particular abend code from the log file. We have coded rexx for doing this and it is working fine now.

My question is ..

How to execute automatically this REXX for a particular period of time say every 10 mins?
Back to top
View user's profile Send private message
References
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 184
Location: Pune

PostPosted: Tue Aug 26, 2008 4:32 pm    Post subject:
Reply with quote

Prepare a job to execute the REXX exec and schedule it to run as you need.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3543
Location: Brussels once more ...

PostPosted: Tue Aug 26, 2008 5:59 pm    Post subject:
Reply with quote

Do you not have any other form of operations automation tool available

NETVIEW, CA-OPER, various others.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 530
Location: work

PostPosted: Tue Aug 26, 2008 11:01 pm    Post subject: Reply to: CICS abend automation
Reply with quote

Reading the log every 10 minutes?? Most of the log will be the same. You will likely read the same abend instance multiple times. You need to keep track of which you already have processed. Or keep track of what time intervals you have already processed.
Back to top
View user's profile Send private message
Soundammal.S

New User


Joined: 05 May 2008
Posts: 13
Location: Chennai

PostPosted: Wed Aug 27, 2008 10:01 am    Post subject: Re: Reply to: CICS abend automation
Reply with quote

Thanks for responding...

I have read the same log repeatedly say for every 10 mins.Is this possible? If so kindly guide in this regard.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8724
Location: 221 B Baker St

PostPosted: Wed Aug 27, 2008 9:05 pm    Post subject:
Reply with quote

Hello,

Quote:
I have read the same log repeatedly say for every 10 mins.Is this possible? If so kindly guide in this regard.
If you have done it, it must be possible. . .

What kind of guidance are you looking for? Obviously, there is something that i do not understand.

One thought that comes to mind is that when you read the log, keep track of the last time read and on the next pass, ignore any entries up to that time.

Is there some reason to create a "report" that is most likely already provided by other tools on your system?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 530
Location: work

PostPosted: Wed Aug 27, 2008 10:15 pm    Post subject: Reply to: CICS abend automation
Reply with quote

You can use the SLEEP function to wait until the next interval.
Code:
/* rexx */
call syscalls 'ON'
Do x = 1 to 3
  Say time()
  /* add call to your program  here */
  address syscall "sleep 10"
  say Time()
End
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1