[ |../../index.htm#lansa/ugub_40014.htm]
You are here:

4.7.1 Submit the Job to Compile a Process Definition

When the option to compile a process definition has been selected from the process control menu a screen similar to the following example will result:

 
 DC@P300302             Compile / Re-Compile a Process     
 
 Process  : XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX       
 
 Submit this job   . . . . . . . . . . . . . . . .  YES         YES, NO
 Using Job name  . . . . . . . . . . . . . . . . .  XXXXXXXXXX         
       Job description   . . . . . . . . . . . . .  *LIBL/QBATCH       
       Job queue   . . . . . . . . . . . . . . . .  *JOBD             
       Output queue  . . . . . . . . . . . . . . .  *LIBL/QPRINT      
 Compile the process as well as functions below  .  NO          YES, NO
 Produce RDML / RPG and DDS source listings  . . .  NO  / NO    YES, NO
 Optimise/Ignore decimal data errors . . . . . . .  NO  / NO    YES, NO
 Allow debug / Program observability   . . . . . .  YES / YES   YES, NO
 Dump code generator work areas  . . . . . . . . .  NO          YES, NO
 Produce Documentor details  . . . . . . . . . . .  YES         YES, NO
 Generate HTML pages / Validate numerics . . . . .  YES / YES   YES, NO
 Generate HTML/Validate numerics . . . . . . . . .  YES/NO      YES, NO
 
   Sel    Function    Usable      Description                          
    _     XXXXXXX     XXX         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
    _     XXXXXXX     XXX         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
    _     XXXXXXX     XXX         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
 
 Fnn=Help  Fnn=Exit  Fnn=Cancel  Fnn=Messages       
 

 |
If the compile request is confirmed, a batch job will be submitted to compile the process definition.
Note that the batch compile job does not require exclusive use of the process for the entire time it is executing.
As each individual RDML function is compiled it is locked for exclusive use then released again when it has finished.
Similarly, the entire process is only locked if and when the process itself is to be compiled. It is unusual to compile processes in a development environment, so this should not be a problem.
When recompiling processes that use the usage HEAVY option (refer to 4.4.1 Specify the New Function's Details for more details), it may be necessary for any user of the process to sign off and sign on again to actually release all the locks held on the process.
This complication most commonly presents a problem in the following situation:

Since user A was using process P he/she should have signed off and on again before submitting the recompile job.
If user A was accessing LANSA from command entry mode then an alternative to signing off and on again would be to exit from LANSA back to command entry mode, enter the command RCLRSC *CALLER, then invoke LANSA again to submit the recompile job.
Note: this complication only arises for processes that use the usage "HEAVY" option.
Input Options
Submit This Job?
Refer to Submit This Job? in Common Input Options.
Job Name
Refer to Job Name.
Job Description
Refer to Job Description.
Job Queue
Refer to Job Queue.
Output Queue
Refer to Output Queue.
Compile the Process as well as Functions below?
Specifies whether or not the process should be turned into compiled form (in addition to any of the RDML functions selected from the list on the lower portion of the screen).
Any RDML function must be associated with one and only one process. The process is responsible for invoking and controlling each of its associated RDML functions.
It is not mandatory that a process be compiled. If it is not compiled an "interpretive" version of the process will be used at execution time. However, for better throughput it is possible to compile the process as well as its associated RDML functions.
The recommended procedure is to use the "interpretive" version of the process during application development. Just prior to placing the process into a production environment it should be compiled to gain the maximum throughput possible.
Mandatory field. Default value is determined from the system definition data area. Refer to The System Definition Data Area Overview. Allowable values are:

YES

Compile the process as well as any selected RDML functions.

NO

Do not compile the process. An "interpretive" version of the process will be used to control the associated RDML functions.

Produce RDML/RPG and DDS Source Listings
Specifies whether source listings should be produced by the batch compile job. Source listings produced include:
RDML

Mandatory field. Default value is determined from the system definition data area. Refer to The System Definition Data Area Overview. Allowable values are:

YES

Produce RDML source listings.

NO

Do not produce RDML source listings.

RPG and DDS

Mandatory field. Default value is NO. Allowable values are:

YES

Produce RPG and DDS source listings.

NO

Do not produce RPG and DDS source listings.

Note that if errors are found in RDML commands associated with a function, a source listing of them will be produced regardless of whether or not it was actually requested .
Optimize Compiled Programs
Specifies whether or not optimization should be used when compiling the RPG program that results from the "function control commands".
How this feature is implemented depends on the version of RPG code being compiled. For more information on the different versions of RPG code that can be compiled refer to ILE Implementation.
This facility is provided for compatibility with the IBM i. No claims are made regarding the effect of using (or not using) the optimization option. Refer to the IBM supplied CL reference manual for details. Using this option may increase the time taken to compile a process.
Mandatory field. Default value is determined from the system definition data area. Refer to The System Definition Data Area Overview . Allowable values are: