To see the differences between build and rebuild, follow these steps:
/* Micro Focus Open PL/I Include File */ put skip list ('jim', MSG);
/* Micro Focus Open PL/I Console Application */ %replace MSG by 'From include - main'; Program1: proc options (main); dcl sub entry; dcl a1 char(14); put skip list ('Hello world - main' ); %include 'Include1.inc'; call sub(); put skip; get list (a1); end Program1;
/* Micro Focus Open PL/I program */ %replace MSG by 'From include - sub'; sub: proc; put skip list ('Hello world sub' ); %include 'Include1.inc'; end sub;
Program1.pli is up-to-date sub.pli is up-to-date PL/I compile: 2 item(s) succeeded or up-to-date, 0 failed.
If you change one of the source files and then click Build > Build Solution, only that program will be compiled.
If you change the include file, both programs will be compiled, because it is included in both of them. Any program that does not use the include file, will not be re-compiled.