Required Parameter Group: | |||
1 | Environment string | Input | Char(*) |
2 | Length of environment string | Input | Binary(4) |
3 | Error Code | I/O | Char(*) |
The QtmhPutEnv API allows you to set or create a job-level environment variable. This is useful for communication between programs running in the same job, such as your program and the Net.Data® language environment DTW_SYSTEM.
The input string of the form: ″envVar=value″. Where ″envVar″ is the name of the new or existing environment variable, and ″value″ is the value you want to set the environment variable. Note that they are both case sensitive. The server expects this value to be in the CCSID of the job.
The input variable that contains the length of the environment string parameter (without trailing blanks). For example, the length of the environment string ″envVar=value″ is twelve.
The structure in which to return error information. For the format of the structure and for details on how to process API errors, see the API error reporting topic in the iSeries™ Information Center.
Programs that need CCSID conversion support for environment variables should use the Put environment variable with CCSID (QzsrPutEnvCCSID) API.