Why does he need REXX? Is he running it from a TSO command line?


On 14/11/2017 3:11 AM, Lizette Koehler wrote:
I think Venkat has a few issues to solve

    1) File is on the mainframe
    2) He needs to add an LLQ on the Windows system he is sending the file to
    3) Mainframe date/time is different form Windows date/time (example, MF in 
New York but PC is in Singapore, so needs to have the NY Date/Time in the file 
name)
    4) He needs a process that will create a file with the MF Date/Time in the 
file name on the Window
    5) He needs to determine what the LLQ should look like  e.g. 2017-11-11 or 
20171111 or 2017307 and so forth.  Same with time  HHMMSS  or HH-MM-SS and so  
forth.



A Rexx or Clist would be able to create a file name with the mf date/time stamp 
but only at the run time.  Not necessarily when the file was actually created 
on the mainframe.  Second, the FTP needs to place the file on the windows 
system with the mf date/time in the file name.

He needs for someone to code this for him as he is not sure how to do this 
process.

I think this summarizes his question so far, if not, he can restated the area 
where I did not understand his requirements

P.S.  I think REXX is the better process for this. But maybe he needs a Batch 
function he can support.

Lizette




-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Kirk Wolf
Sent: Monday, November 13, 2017 11:55 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: CLIST to add LLQ into PS file

Sorry! my mailer let my previous post go while I was editing!
Let me try again......

With Co:Z SFTP, its trivial to use shell scripting in batch to do this.

For example:

//SFTPPUT EXEC PROC=SFTPPROC
//SFTPIN DD *
cert="MY-RING:RSA-CERT"
user=myuser
host=my.windows.host.com
lzopts="mode=text,linerule=crlf"
lfile=//DD:MYDD
suffix=$(date +%Y-%m-%d:%H:%M:%S)
rfile="C:\SFTP\testpla.np.$suffix"

# This calls a sample batch script which sends lfile to rfile

. $script_dir/sftp_put.sh

//MYDD  DD DISP=SHR,DSN=....
//*


Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Mon, Nov 13, 2017 at 12:49 PM, Kirk Wolf <k...@dovetail.com> wrote:

With Co:Z SFTP, its trivial to use shell scripting in batch to do this.

For example:

//SFTPPUT EXEC PROC=SFTPPROC
//SFTPIN DD *
cert="MY-RING:RSA-CERT"
user=myuser
host=myhost
lzopts="mode=text"
lfile=//DD:MYDD
rfile=/etc/profile

. $script_dir/sftp_put.sh

//MYDD  DD DSN=COZUSER.SFTPGET.DATA,DISP=(MOD,KEEP),
//        DCB=(LRECL=80,RECFM=FB),SPACE=(CYL,(3,1))
//*

  date +%Y-%m-%d:%H:%M:%S

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Mon, Nov 13, 2017 at 12:40 PM, Paul Gilmartin
<0000000433f07816-dmarc- requ...@listserv.ua.edu> wrote:

On Mon, 13 Nov 2017 12:33:49 -0600, Kirk Wolf wrote:

sftp is a shell command, so it would seem more natural to use a z/OS
Unix shell script to do what you want.

Or Rexx.

ABC!  (Anything But CLIST.)

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to