in JOB1.step3 i have to send a Input value to JOB2.
In JOB2 it has to process the input value and pass the processed value to JOB1.
and the rest of the steps in JOB1 execute normally.
hello,
you can submit job2 from job1 after step3 (job1) this value should be saved in a dataset that u then can retrieve in JOB2.
for the latter I think a bit of rexx development can help, :
have rexx scan for a variable (ispf) or a file if file or variable not found then loop thru process or if found exit. ADD this REXX in a step before the step where you want that value of file retrieved and you're done
/* rexx */
trace i
address tso
do i =1 to 1
"listc ent('"userid()".EXO.ICE02') "
if RC=0 then call dsn_ok
else iterate
end
say line.0
exit
DSN_ok:
do forever
"alloc fi(inf) dsn('"userid()".exo.ice02') shr "
If RC > 0 then iterate
"execio * diskr inf (stem in. fini"
"FREE fi(inf)"
do I=1 to in.0
select
when in.i = 'RUN' then exit 05
when in.i = 'RAN OK' then exit 06
otherwise nop
end
end
end
How can it be your problem gets simplified if you have any scheduler in your installation. There is a concept called triggers , in your case you can output a file from step 3 of job 1 whcih does contain info to be passed on to your job2. You can setup a trigger on job2 once your file gets created from setp3 of job1. I hope this simplifies your problem. Before proceeding pls know if your installation does have any CA7 /jobtrac or any other scheduler to set up this trigger. 8)
spot on nilu...
any job scheduler have such facility...
just a tricky (technical wise) question I wanted to answer. IF the solution has to be implemented production-wise they they should consider the job-scheduler option.
Either I don't understand the problem or something is missing in the explanation, but why don't you combime both jobs by putting all 3 steps of job 2 between steps 3 & 4 of job 1?