Submitted by Syd Nicholson on Wed, 07/06/2011 - 00:00
Forums
Hi Niels,
 
As you know the Belmar system comprises services programs and "ordinary"
programs. The order in which these programs are compiled is important.
Certain service programs must compiled first, and all service programs
must be compiled before the other programs in the system.
 
Is there a callable API in IceBreak that I can use to compile these
programs?
 
The object is to build a list of objects to compile in a DB file and
create a program to compile all the programs in the list. The sequence
of entries in the list governs the order of compilation. This process
would avoid the need to compile each program in the browser, and allow
me to create a batch procedure.
 
I could use feedback from the API (ie. compile successful or not) and
update the program list to determine where any compile failures
occurred, correct any errors and run the process again.
 
Your thoughts, comment are welcome.
 

Best regards,

Syd

Niels Liisberg

Wed, 07/06/2011 - 00:00

Hi Syd;

Actually you can access the compiler like any other IBMi commands: from a 5250 try CRTICEPGM.

With that in mind you can can build a small CLP (static or with a dynamic list ) for creation of your programs.

Best regards,

Niels Liisberg

Thanks Niels,

A few more observations.

1. Running from 5250 display -- library list is incorrect for compile (even if 5250 job library list is OK). Compilation fails.
2. Because of above, I need to create PGM to run from browser in the correct server.
3. I can trace failed compiles by checking job log and hunting for printed output. With a 100+ programs this is a bit tedious. Is there a better way - does the CRTICEPGM have messages that can be monitored, thus providing feedback to the calling program? I would then quickly know which programs compiled successfully, and which ones did not.

Regards,

Syd

Hi Syd;
 
The CRTICEPGM sets the library list according to the server you assign -  So the job description for the server has to be what you desire. Otherwise change it with option 15 on WRKICESVR  command in GO ICEBREAK. 
 

Best regards,

Niels Liisberg