Troubleshooting
Problem
When you use FTP to create a member of a PDS, and ISPFSTATS is TRUE (or when you update an existing member that already has ISPF statistics), the time values stored do not match the time of the transfer.
Cause
FTP uses the local time settings provided by the Language Environment (LE). However, when the client is invoked from the TSO or batch environments, LE returns GMT rather than local time since it does not have a setting for the TZ (time zone) environment variable.
This behavior also affects the following:
- FTP DEBUG TIME output.
- TSO NETSTAT command.
- Servers running as started tasks (such as FTPD and OMPROUTE). However, for these programs the environment variable specifications can easily be provided by way of the LE parameters used on the EXEC statement for the server program, see Technote 1177026 for more information.
- User C/C++ programs that have #pragma runopts(POSIX(ON)) specified.
Resolving The Problem
Use one of the methods described in TechNote 1177026 to specify the TZ environment variable (for example, ENVAR('TZ=EST5EDT')). If all users are operating in the same time zone, then setting it as a system-wide default (CEEPRMxx PARMLIB specification for z/OS 1.7 and later, or CEEDOPT customization for z/OS 1.13 or earlier) is the best approach. Otherwise, individual users will need to supply the TZ environment variable as an override (PARM specification, or CEEOPTS DD for z/OS 1.7 and later).
//STEP01 EXEC PGM=FTP,PARM='ENVAR("TZ=EST5EDT")/(EXIT'
//OUTPUT DD SYSOUT=*
//SYSFTPD DD DSN=SYS1.TCPPARMS(FTPDATA),DISP=SHR
//INPUT DD *
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21140187