On Fri, Dec 2, 2016 at 4:57 PM, Paul Gilmartin <
[email protected]> wrote:

> >
> I have, for example an EXEC/Macro that invokes "pax -v" to display a
> detailed
> directory of a pax.Z archive.  Invoked from a shell, it displays contents
> with
> local time; from ISPF DSLIST, UTC.  If TZ were available it would work
> alike
> in both environments.
>
>
​You're a UNIX person, Gil. Have you tried:

CALL BPXWUNIX("TZ=CST6CD6 pax -v ...", ...)

If you're using BPXWUNIX(), it invokes the standard UNIX shell via: /bin/sh
-c '....' and so just prefix the actual command with the environment
variables you want to modify for that command. If you want to do that a lot
in a REXX program, then:

EnvVars="TZ=CST6CDT HOME=/tmp X=z "
...
UnixCommand="some command with parms"
CALL BPXWUNIX(Envvars||" "||UnixCommand, ...)​


-- 
Heisenberg may have been here.

Unicode: http://xkcd.com/1726/

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to