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 */
do i =1 to 1
"listc ent('"userid()".EXO.ICE02') "
if RC=0 then call dsn_ok
"alloc fi(inf) dsn('"userid()".exo.ice02') shr "
If RC > 0 then iterate
"execio * diskr inf (stem in. fini"
do I=1 to in.0
when in.i = 'RUN' then exit 05
when in.i = 'RAN OK' then exit 06
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.