It is currently 26 May 2018 12:42


Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 14 Jun 2012 6:43 
Offline
Nouveau
Nouveau
User avatar

Joined: 21 Jan 2010 12:00
Posts: 26
Hi there.

I have 15 AFT Jobs copying every 30 minutes audit logs, but when after 4 attempts whith no files to transfer ( * No matching files for pattern* ) i need do :

- Stop Cyclic
- Do NOT_OK

Anybody knows how can i do that?

Thanks

osafr71


Top
   
 Post subject:
PostPosted: 19 Jun 2012 2:31 
Offline
Nouveau
Nouveau
User avatar

Joined: 19 Jun 2012 12:00
Posts: 2
Use RUNCOUNT in the Step tab


Top
   
 Post subject:
PostPosted: 04 Jul 2012 6:37 
Offline
Nouveau
Nouveau
User avatar

Joined: 21 Jan 2010 12:00
Posts: 26
Hi there. Thanks for all that reply, but the RUNCOUNT option i already use for cont the number of iteractions.

It seems the chookgate solutions will be more appropriate for me, but the tests a used it diddn't work because the postcmd will increment eache time it executes, and i want to count only when the string ( * No matching files for pattern* ) appears.

Any suggestions?


Top
   
PostPosted: 23 Jul 2012 7:17 
Offline
Nouveau
Nouveau
User avatar

Joined: 11 Oct 2007 12:00
Posts: 161
Location: Melbourne
I think you may be best to use a shout to a program to handle this.
On first run of the job, set a global variable (say %%\NOFILECOUNT) to 0.

Every time the job gets the output "No matching files for pattern*:
1. Increment %%\NOFILECOUNT by 1.
2. Run the script, passing to it the value of %%\NOFILECOUNT and the order id.

The script will use ctmvar to check the value of %%\NOFILECOUNT
If the value is 4, then use ctmpsm to perform the Stop Cyclic and Do NOTOK.

Cheers.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved