Hello Paul,

Thank for reply but system doesn't take %D as date variable.  It taking as
file name. So variable in file yyyymmdd not getting replaced with actual
date

On Wed, Jun 15, 2022, 15:54 Paul Gilmartin <
[email protected]> wrote:

> On Wed, 15 Jun 2022 13:44:43 +0300, saurabh khandelwal  wrote:
> >
> >I am am running below Job in TSO env and getting to get file file from
> >windows to Mainframe env.
> >
> >Initially file was static and all worked well. But now, requirement is to
> >get the file, which has current time stamp on daily basis.
> >
> >Ex : EBC-GOV-yyyymmdd.txt'   in this yyyymmdd should be replace with
> >year/month/date.
> >
> # Change:
>     echo 'get EBC-GOV-yyyymmdd.txt'
>
> # to
>     date '+get EBC-GOV-%D.txt'
>
> >
> >But I am unable to find way to achieve this goal. Can you please help on
> >this issue.
> >
> >//SFTPSEBC JOB (7330),MSGCLASS=X,CLASS=P,NOTIFY=&SYSUID
> >//STEP1   EXEC PGM=IKJEFT01,REGION=0M
> >//SYSEXEC  DD   DISP=SHR,DSN=SYS1.SBPXEXEC
> >//SYSTSIN   DD DSN=NP.LIB.CLIST(SFTPSEBC),DISP=SHR
> >//OUTPUT DD SYSOUT=*
> >//SYSTSPRT DD SYSOUT=*
> >/*
> >
> >EDIT       NP.LIB.CLIST(SFTPSEBB) - 01.01                Columns 00001
> >00072
> >
> >Command ===>                                                  Scroll ===>
> >CSR
> >
> >000007  OSHELL { echo 'lcd /u/op117/';
> >+
> >
> >000008           echo 'cd /FRB/EBCClearing/Staging/tmp';
> >+
> >
> >000009           echo 'ASCII';
> >+
> >
> >000010           echo 'get EBC-GOV-yyyymmdd.txt'; } | +
> >
> >000011         sftp -P 2222 [email protected]
> >
> >
> >000012 OGET '/u/op117/EBC-GOV-yyyymmdd.txt'                      -
> >
> >000013       'NBFDP.DATA.XX.XX.SFTP'
> >
> >****** **************************** Bottom of Data
> >****************************
>
> --
> 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