I suppose it depends on how you look at the command
In this instance - you are adding an environment variable - CLASSPATH
I was looking at it as
You are adding data to an environment variable (that is existing) CLASSPATH
Obviously - my way of looking at this si the wrong way
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
‘If you're going through hell, keep going.’
Winston Churchill
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Thursday, September 14, 2017 11:15 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Accesssing External Databases
On Thu, Sep 14, 2017 at 8:45 AM, Alan Shore <ashore@xxxxxxxx> wrote:
Thanks Justin
That's misleading
No it isn't...
ADDENVVAR ENVVAR(CLASSPATH) VALUE('/java/jdbc/jtds-1.3.1.jar')
"Environment variable name exists."
The "environment variable name" (ENVVAR) is "CLASSPATH".
The message detail clearly tells you the problem
Cause . . . . . : You tried to add an environment variable (ADDENVVAR),
'CLASSPATH', of level *JOB, that already exists.
Recovery . . . : Do one of the following:
- Specify the REPLACE(*YES) option to replace the existing value with the
new value.
- Use the CHGENVVAR command to change the specified environment variable.
- Retry the command with an environment variable that does not exist.
The message isn't any different from any other "object already exists"
message you'd get from an ADDxxx, or CRTxxx command I can think of.
Charles
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.