( ** Go back to PARENTPAGE ../Script-progenv-aspl.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)
How to get the environment variables of a shell script or program
An ASPL script to get the environment variables of WebSphere runConfigActions.sh script. The script progenv.aspl is followed by the script
name. In this example we call progenv.aspl to run the WebSphere runConfigActions.sh script and collect its environment variables.
ASPL 1> B = ggprogenv(grp1,L,program,/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/runConfigActions.sh,onlychanged,1)
call ASPL grouping function ggprogenv() to get the environment of the shell script runConfigActions.sh and assign it to set variable B
ASPL 2> print *** PROGRAM ENVIRONMENT VARIABLES ***
ASPL 3> dm 3
set display mode to 3
ASPL 4> v
print the symbol table