Hi,
Can anyone explain about the value to mention in the code on steps tab.
i have a web service job with cyclic, which submits b/w 8:00 and 20;00.
so if job runs b/w 8:00 and 13:00, parameter should pass a vaule as Always ( which can be defined in the set tab), if b/w 13:00 and 14;00, parameter should pass as Never, and lastly b/w 14;00 and 20:00 run, parameter should again pass a vaule as Always.
So in this case can i define the on statement Code as %%Time<1300 and do statement to setvar? and remaining too...
Actual my question is when and what can we use the code value.
Thanks....
Step tab code value
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
Hi,
you can use twice statement or code:
statement is related to OSCOMPSTAT
code search for a specific value (or text)
so if you insert a set -x in a part off the script wating for example for the words "RUN KO" you enter for the job:
on statement * code "RUN KO" do something.
Regards,
Philmalmaison
you can use twice statement or code:
statement is related to OSCOMPSTAT
code search for a specific value (or text)
so if you insert a set -x in a part off the script wating for example for the words "RUN KO" you enter for the job:
on statement * code "RUN KO" do something.
Regards,
Philmalmaison
Eventually i had set three different jobs, but just want to try to do in a sinlge job itself,by setting up in the steps tab.
So what is the error if i setup like
ON
Statement=* Code= %%time<13:00
Do
Setvar=/Authorization value= Always.
And similarly for other timing as well. Please let me know.
Regards,
Praveen
So what is the error if i setup like
ON
Statement=* Code= %%time<13:00
Do
Setvar=/Authorization value= Always.
And similarly for other timing as well. Please let me know.
Regards,
Praveen