FORCE OK steps not executing code OK

All questions about Control-M jobs definitions
User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

FORCE OK steps not executing code OK

Post by icemanCTM » 27 May 2010 5:40

Not running steps, whith force Ok Job, what's up?

not running with code = OK, FORCE

Control-M 6.3

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 5:51

What does the job log show?

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

with FORCE OK

Post by icemanCTM » 27 May 2010 5:56

27/05/10 09:46:23 TR5120 JOB STATE CHANGED TO Analyzed
27/05/10 09:46:23 SL5120 JOB STATE CHANGED TO Post processed
27/05/10 09:46:29 CS5411 FORCE OK REQUEST SUBMITTED BY USER MRN10964
27/05/10 09:46:29 SL5410 JOB FORCED OK
27/05/10 09:46:29 SL5120 JOB STATE CHANGED TO Post processed

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

Programming steps

Post by icemanCTM » 27 May 2010 5:58

On Statement Stmt = +EVERY Code = FORCE
Do Set-Var Name = \IDALARMLEVFG1 Value = %%OWDAY.%%OMONTH._%%JOBNAME
Do Set-Var Name = \DESCRIPCIONLEVFG1 Value = ERROR %%APPLIC/%%APPLGROUP/%%JOBNAME
Do Set-Var Name = \SEVERIDADLEVFG1 Value = NORMAL
Do Set-Var Name = \SOPORTELEVFG1 Value = Control-M
Do Condition Name = Test_LevantaFG-ENDED-OK Date = 27/05 Sign = +

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 6:03

It looks like it is doing the post processing for the Ok condition?

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

mmm., for Ok steps:

Post by icemanCTM » 27 May 2010 6:18

On Statement Stmt = * Code = OK

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

im sorry... english limited

Post by icemanCTM » 27 May 2010 6:24

im sorry... english limited

I'm sorry for my explicated

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 6:27

Can you give more of what you have in yuour steps
for example

On stmt=* Code=OK And
Do Condition Force JobName

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

It's my programming Job

Post by icemanCTM » 27 May 2010 6:44

On Statement Stmt = * Code = NOTOK
Do Set-Var Name = \IDALARMLEVFG1 Value = %%OWDAY.%%OMONTH._%%JOBNAME
Do Set-Var Name = \DESCRIPCIONLEVFG1 Value = ERROR EN EL JOB %%APPLIC/%%APPLGROUP/%%JOBNAME
Do Set-Var Name = \SEVERIDADLEVFG1 Value = MINOR
Do Set-Var Name = \SOPORTELEVFG1 Value = Control-M
Do Condition Name = Test_LevantaFG-ENDED-OK Date = ODAT Sign = +
On Statement Stmt = * Code = OK
Do Set-Var Name = \IDALARMLEVFG1 Value = %%OWDAY.%%OMONTH._%%JOBNAME
Do Set-Var Name = \DESCRIPCIONLEVFG1 Value = Termino OK JOB %%APPLIC/%%APPLGROUP/%%JOBNAME
Do Set-Var Name = \SEVERIDADLEVFG1 Value = NORMAL
Do Set-Var Name = \SOPORTELEVFG1 Value = Control-M
Do Condition Name = Test_LevantaFG-ENDED-OK Date = ODAT Sign = +
On Statement Stmt = * Code = FORCE
Do Set-Var Name = \IDALARMLEVFG1 Value = %%OWDAY.%%OMONTH._%%JOBNAME
Do Set-Var Name = \DESCRIPCIONLEVFG1 Value = FORCE OK JOB %%APPLIC/%%APPLGROUP/%%JOBNAME
Do Set-Var Name = \SEVERIDADLEVFG1 Value = NORMAL
Do Set-Var Name = \SOPORTELEVFG1 Value = Control-M
Do Condition Name = Test_LevantaFG-ENDED-OK Date = 27/05 Sign = +

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 7:16

So it looks like the job didnt have a condition of OK,
It was forced OK by you?
And I am not sure there is a Code = FORCE ?

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

My problem

Post by icemanCTM » 27 May 2010 8:05

I want is to run the steps as if the job ended in Ok.

When set to "Force OK" do not run the steps, or is there some way to run dicahs conditions

User avatar
icemanCTM
Nouveau
Nouveau
Posts: 17
Joined: 21 Mar 2010 12:00

My problem

Post by icemanCTM » 27 May 2010 8:05

I want is to run the steps as if the job ended in Ok.

When set to "Force OK" do not run the steps, or is there some way to run dicahs conditions

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 8:09

Okay so why do you force it okay?
If it runs and fails " Not Ok" runs the same do statements
If it runs and is successful it looks like it should run the do statements
why would you force it ? It should either succeed or fail which will execute the do statements?
Thank You

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 27 May 2010 8:14

Hi,

Don't forget:

FORECEOK can only be applied to inactive jobs (that is, jobs that are not running).
Best regards
Walty

User avatar
Banshee06
Nouveau
Nouveau
Posts: 79
Joined: 10 Jul 2009 12:00
Location: Salem, Oregon

Post by Banshee06 » 27 May 2010 8:22

Maybe you should create a Dummy job after this job since you seem to want these do parmeters set no matter what.
and it purpose would be if the job is OK, NOTOK or the the job is forced OK
it would set these do contions?

Post Reply