Consultor Eletrônico



Kbase P103732: Error 293 after moving all programs into a procedure library
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/24/2008
Status: Verified

SYMPTOM(s):

Application has code split into multiple directories underneath one parent directory

All RUN statements refer to use the program name and not to any relative path

When running application without a .pl file everything works

When the application code is moved into a .pl file error 293 is received

** "<file-name>" was not found. (293)

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x

CAUSE:

When running without a .pl file each subdirectory of the parent directory was listed in the PROPATH. This allowed each program to be found via the 4GL's normal search mechanism. When the .pl file was created the files in each subdirectory were incorrectly added as relative pathed files (i.e. XYZ/ABC.R). When the individual directory entries in the PROPATH were replaced by the one .pl file the effect was that none of the 4GL programs in any of the subdirectories could be found.

FIX:

There are two possibilities for resolving this situation:

Rebuild the .pl file by copying all of the files from all subdirectories into a single location then add them all to the .pl file so that the end result is a .pl file with all 4GL programs at the logical "root" level (i.e. no relative path needed). This will work if there are no duplicate program names in any of the subdirectories (which there should not be if all of your RUN statements use just the name of the program).
Build a separate .pl file for each subdirectory and place all of the .pl files on the PROPATH.