Rocket DevOps (formerly Aldon)

 View Only

 keeping changes synced between 2 programs

David Krohn's profile image
David Krohn posted 03-22-2022 13:33
Hello, sorry if this has been covered already but I have a situation where there are 2 cobol programs (object type *PGM, as in non-ile), that need to stay in sync, code wise.

What I mean is as follows...

Program A - get new logic added to it quite frequently.  Program B needs much of the same code but the developers many times forget about Program B.

Program A gets changed, tested, promoted.  Program B is forgotten.

Is there a way to either...

a.) setup some kind of dependency or conflict is created, so when Program A is promoted from Dev to QA , the promotion will fail if Program B does not come along with it.
b.) we can create a user program that will pop up  a message when we Promote program A that reminds the developers to check if Program B needs the new code.

Any help would be appreciated.

ps - ive tried making on dependent on the other but that didnt stop any check outs or promotions.
Jack Zhang's profile image
ROCKETEER Jack Zhang
Hi David, 

Thanks for your inquiry! If Program B is not identified as a dependent of Program A in IBMi/LMi, you can manually define the dependency relationship: 
STRLMI > 1 > 40 on Program B > Enter Program A as its requisite (User-Defined Requisite Objects).

Then whenever Program A is checked out/updated and promoted, Program B will be recompiled as well (added to task if so specified), if you default to Create Dependent objects. 

Hope this helps. 

Best regards,
Jack