Posted: Thu Mar 20, 2003 10:11 pm
The ability to use environment variables was new in version 6.0. Are you running an earlier version than 6.0?
Prior to 6.0, the usual techniques involved
(1) hashed files with "constant" keys that were populated, for example, in a before-job subroutine
(2) use of system variables such as @USER0, @USER1, @USER2 and so on and @USER.RETURN.CODE populated, for example, in a before-stage subroutine
In DataStage BASIC you can access the value of an environment variable by executing the DSExecute subroutine, for example:
Call DSExecute("UNIX", "echo $TARGET_UID", Output, ExitStatus)
Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Prior to 6.0, the usual techniques involved
(1) hashed files with "constant" keys that were populated, for example, in a before-job subroutine
(2) use of system variables such as @USER0, @USER1, @USER2 and so on and @USER.RETURN.CODE populated, for example, in a before-stage subroutine
In DataStage BASIC you can access the value of an environment variable by executing the DSExecute subroutine, for example:
Call DSExecute("UNIX", "echo $TARGET_UID", Output, ExitStatus)
Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518