Kbase 16843: AS/400: How to place utility commands into CL programs.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  25/05/2006 |
|
Status: Unverified
GOAL:
How to place utility commands into CL programs.
FACT(s) (Environment):
AS/400
FIX:
AS/400 customers who would like to place the Progress utility commands into Control Language (CL) programs may do so. This may be done for a variety of reasons like incorporating the starting/ending of Progress brokers into system or subsystem start-up jobs. Users need to be aware of certain conditions that must be considered when doing this type of programming. Progress/400 utility commands, such as STRPRONET, do contain validity checking programs. These validity checking programs are used to ensure proper functioning of the commands and must be in place when the commands are executed.
The IBM Source Entry Utility (SEU) on the AS/400, by design/default, automatically executes the validity checking program for a command when it is entered into source. When the validation program executes, it may find that certain criteria needed for the command to execute is not met, and will fail. An example of this failure would be seen if using STRPRONET to start a tcp/ip broker for a service that is already in use (at the time of source entry). If a broker is active, the validity checker senses this and will message the programmer to this effect. In many circumstances, it is not feasible to end certain processes in order to modify Control Language programs that access these processes/utilities but, there are few remedies due to SEU functionality. For these special circumstances, the validity checking program may be removed from the command by using the OS/400 command CHGCMD (change command). The keyword parameter to change is VLCCKR and the setting of *NONE can be used to pacify the editor. Be sure to note the name and location of the validity checking program so that you may replace it correctly after making the needed change.
***THE VALIDITY CHECKER MUST BE IN PLACE BEFORE THE COMMAND IS USED***