Yes, the <env> process sub-element is supported on all operating systems.
The error you are getting is RC 4001 with error message "Caught
com.ibm.staf.service.stax.STAXXMLParseException:" followied by details of
what that xml parse exception is which you did not provide. The detailed
error message is probably telling you that you put the <env> element in
the wrong place within your <process> element. You need to place the
<env> elemnt(s) within the proper position within your <process> element
as documented in the STAX Users's Guide (and as the error message is
telling you).
In the section about the "process" element in the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_Process it
says:
Optional process elements:
Here are some important notes about optional process elements:
1. If specified, these optional process elements must be specified in
the order listed below (with some variations). Refer to the "STAX Document
Type Definition (DTD)" section to see the DTD for the process element and
to see the variations in process element order that are allowed.
The process element may contain any of the following optional elements in
the order listed (with some variations):
parms.
workdir
title
workload
vars (or var) .
envs (or env) - specifies environment variables that will be set for the
process. Environment variables may be mixed case, however most programs
assume environment variable names will be uppercase, so, in most cases,
ensure that your environment variable names are uppercase. The value must
evaluate via Python to a string or a list of strings. Multiple envs
elements may be specified for a process. The format for each variable is:
'varname=value' So, a list containing 3 variables could look like:
['ENV_VAR_1=value1', 'ENV_VAR_2=value2', 'ENV_VAR_3=value3']. Specifying
only one variable could look like either: ['ENV_VAR_1=value1'] or
'ENV_VAR_1=value1'. There can be 0 or more occurrences of this element.
useprocessvars
username
password
disabledauth
stdin
stdout
stderr
returnstdout
returnstderr
returnfiles (or returnfile)
stopusing
console
focus
statichandlename.
other
process-action.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: "William.Bai" <william....@tekelec.com>
To: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>
Date: 07/25/2011 03:44 AM
Subject: [staf-users] Process element env(s) on linux
Hi:
Today, when I try to use <env> in STAX, it reports the following
error(RC:4001 Caught com.ibm.staf.service.stax.STAXXMLParseException:
.......
In the user guide of STAX, there is example that use <env> to set
java class path. And In
http://permalink.gmane.org/gmane.comp.sysutils.staf.user/1057, It is said
that "<env>" is supported on Windows, could you kindly tell me whether it
is supported in <env>? Thanks
BRs
William
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now!
http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users