Short message "Environment not defined" may arise in Quickedit when:
The ID of the message is ENDE004E. It may be displayed by the MSGID command while the message is being displayed in the panel.
The long form of the message (displayed by hitting F1) is "ENDE004E Environment is not defined or you are not authorized"
This message means that the environment name entered in the panel is not valid because:
To check whether the environment is defined and whether the userid has permission to use it, take an Endevor options report together with an external security (ESI) trace as follows:
The options report prints all the environments defined for the run. For example:
Endevor Site Options Settings
ENVIRONMENT DEFINITIONS - C1DEFLTS CREATED: 12/12/24 - 16.55
Env ------- Stage 1 ------- ------- Stage 2 ------- ---- Next ----
Name ID Name Entry Stage ID Name Entry Stage Env Stage
RWRK 1 RWRK1 Y 2 RWRK2 N WRK 2
WRK 1 WRK1 Y 2 WRK N DEV 1
DEV 1 UNITTEST Y 2 UTC N QA 2
QA 1 QAINT Y 2 QATURN N PRD 2
PRD 1 PRDFIX Y 2 PRD N
If the environment name requested in the panel DOES NOT show up in the report, that is the reason for the message. You need to either:
The particular C1DEFLTS table used in the run may depend on:
If the environment name SHOWS UP in the report, then it must be a matter of security. You need therefore to check the ESI trace.
The security checks for the ENVIRONMENT_ACCESS point are performed during initialization so they show up at the beginning of the trace. This is a sample taken from our system:
ENCS101I Format=0001 Pass=0000 Auth=READ ACEE=00000000 ENDYNENC ENVPATH +000BB4
ENCS101I Class=DATASET Log=NONE Func=RETRIEVE
ENCS101I Scale=0....+....1....+....2....+....3....+....4....+....5....+....6
ENCS101I Entity=MF20.ENVIRON.RWRK
ENCS101I User <userid> access is allowed from SAF
ENCS101I RACROUTE RC=0000 RACHECK RC=0000 Reason=0000
In the trace entry, note: