Hello Paul,

I am not using any redirection and using  below to connect to remote
windows system from mainframe.

sftp -p -v [email protected]. <[email protected]>125


I tried using below way already

OPUT 'TEST.OUTPUT'   '/sftp/file/test1'

OSHELL { cd /sftp/file/  ; +

         mv test1  test1.$(date +%Y%m%d%H%M) ;   }


but the problem is my omvs and tso are using different time . OMVS is using
EDT and TSO is using GMT time.


in /etc/profile, I have


# Specifies the local time zone.

# ===============================

TZ=EST5EDT

export TZ


and in  CLOCK00 parmlib member


Command ===>

*********************************

OPERATOR NOPROMPT

TIMEZONE E.03.00.00

ETRMODE  NO

ETRZONE  NO

ETRDELTA 1

STPMODE NO



So, using  $(date +%Y%m%d%H%M)  function, we get EDT time not GMT time.


Can you please suggest any other alternative to get GMT time as time stamp
in file name






On Mon, Nov 13, 2017 at 7:29 PM, Paul Gilmartin <
[email protected]> wrote:

> On Mon, 13 Nov 2017 17:04:09 +0300, venkat kulkarni wrote:
> >
> > 1) We have to send one mainframe PS dataset to windows system 3 times in
> a
> >day using SFTP
> >    ...
> >OPUT 'TEST1.PR.BAS'    '/sftp/file/tstpre.np'
> >    ...
> >       sftp -p -v [email protected]. <[email protected]>125
> >
> What are you trying to do with those redirections?
> >
> >Can you please help me to achieve this using CLIST to call system date and
> >time value into variable and then put this variable as LLQ of this file
> and
> >then transfer to windows.
> >
> change: '/sftp/file/tstpre.np'
> to: '/sftp/file/tstpre.np'$(date +%Y-%m-%d:%H:%M:%S)
> >
> Use variables so the change need be made in only one place.
>
> Would this better be done with IRXJCL and BPXWUNIX?
> BPXWUNIX allows SYSIN as stdin, and you can substitute symbols in SYSIN
> nowadays.
>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

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

Reply via email to