Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
I would guess not because step JS204IN will begin executing after job C02030RC has been submitted but probably before it has completed. In other words, job C02030RC will probably still be running when step JS204IN is ready to do its test, and I don't think there's a way for a step to test the RC of another job anyway. Besides, this type of conditional executing should normally be handled by your scheduling software.
Terry, BP will complete 1st before RC as they have the same names and they are running in sequence.
There is no loop. This JCL (C02030IN) has the sequence of JCLs to run. If you see the last step has C02040IN and in C02030IN we have C02050IN and so on. But these IN JCL may have different steps in them. These IN JCLs are already present in the system and I am trying to combine them based on some request.
Since I am combining these JCLs (putting next JCLs at the end step) using REXX, it will be difficult for me to determine which is running after what. Since there are 100s of JCLs, the REXX will take forever to run.
Is there a way to run the JS204IN step, based on the return code from C02030RC JCL ? I could not find it in IBM manuals.