Salesforce

Empty PROPATH when shelling out with PASOE agent

« Go Back

Information

 
TitleEmpty PROPATH when shelling out with PASOE agent
URL NameEmpty-PROPATH-when-shelling-out-with-PASOE-agent
Article Number000184441
EnvironmentProduct: OpenEdge
Version: 11.5, 11.6, 11.7, 12.x
OS: All supported platforms
Other: Progress AppServer for OpenEdge
Question/Problem Description
When using the PASOE Agent to shell out a command to UNIX (i.e. to run a batch progress (mbpro)), the PROPATH environment is set to the current directory ('.')

Looking at the openedge.properties file, neither paths from [AppServer.Agent] nor [AppServer.Agent.oepas1] are applied.
 
Steps to ReproduceRun the following code on the AppServer:

DEFINE VARIABLE cGetEnv AS CHARACTER NO-UNDO.
cGetEnv = "set >> env_var.out".
UNIX SILENT VALUE(cGetEnv).
Clarifying Information
For the Classic AppServer, the PROPATH environment variable is the same as defined in the ubroker.properties.
Error Message
Defect Number
Enhancement Number
Cause
This is expected behaviour.

The PROPATH variable is not set in the environment because the PASOE does not use it.
The reason for this is that a single PASOE instance can support multiple ABL applications with their own session manager and PROPATH.
Resolution
The PROPATH value of a given PASOE instance can be found in the ${CATALINA_BASE}/conf/openedge.properties file, otherwise retrieved with the OEPROP command:
    
{CATALINA_BASE}/bin/oeprop.sh Appserver.Agent.oepas1.PROPATH
 
To have the PROPATH available for the Session Agent on startup, create a *_setenv.bat/sh script that gets executed at startup. See Does Pacific AppServer have the "Environment Variables" tab?  for more information.

Use this script to either set the PROPATH directly or call the "oeprop" comand to extract the PROPATH value from openedge.properties and add it to the environment.
Workaround
Notes
Keyword Phrase
Last Modified Date6/1/2022 3:49 PM

Powered by