Write a REXX script to do the file transfer. You can use the date('S') function 
to generate the date in the format yyyymmdd, then parse out the component to 
build your dsn.


See Chapter 12. FTP Client Application Programming Interface (API), p. 307, in 
z/OS Communications Server 2.5 IP Programmer's Guide and Reference, 
SC27-3659-50.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
saurabh khandelwal [[email protected]]
Sent: Wednesday, June 15, 2022 6:44 AM
To: [email protected]
Subject: SFTP JOB Data parameter

--


Dear All,



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.



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
****************************

----------------------------------------------------------------------
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