It is currently 12 Dec 2017 7:07


Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 14 Jan 2013 12:53 
Offline
Nouveau
Nouveau
User avatar

Joined: 29 Apr 2007 12:00
Posts: 2
Hi:
I need to do a force-job with variable %%JOBNAME. Is possible???

For example:

Steps
-------------------------------------------------
ON Statement = *
Code= COMPSTAT!0
Do Force-job Table= Table1
JOBNAME= %%JOBNAME
ODATE= ODAT

Thank you very much.


Top
   
 Post subject:
PostPosted: 16 Jan 2013 11:06 
Offline
Nouveau
Nouveau
User avatar

Joined: 11 Aug 2009 12:00
Posts: 166
The Documentation Control-M Parameter Guide described:

Do FORCEJOB

AutoEdit Support
No. An AutoEdit variable or expression cannot be specified as all or part of
the value for this parameter.


Top
   
 Post subject:
PostPosted: 17 Jan 2013 2:27 
Offline
Nouveau
Nouveau
User avatar

Joined: 05 Feb 2008 12:00
Posts: 12
We've had some success with functions like this using the Shout facility since you can pass all manner of autoedit variables into a Shout program. So we've developed a script called "ShoutForceJob", and then instead of a "DO FORCEJOB" we've configured the job with a "DO SHOUT" to this ShoutForceJob destination. This allows us to pass in any System or Autoedit variable from the parent job to the forced job.

We have a similar ShoutEmail program which offers enhancements over DO EMAIL.

Its recommended to set your Shout scripts to run asynchronous to avoid slowing down the SL's post processing thread.

HTH. YMMV.
Bill


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
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