To start you can write a simple Clist to display the current time and date functions in CLIST
Then determine which one works for you PROC 0 WRITE &SYSDATE WRITE &SYSTIME And keep going through all of the date and time variables Once you get one you like You can do (using SYSDATE and SYSTIME as the Vars). Windows does not have too many restrictions as far as file names go. SET X = A_B_&SYSDATE.&SYSTIME Then execute the rest of your Clist. I am not sure how you will pass that variable you create, in this example &X, to your FTP JCL Lizette > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of venkat kulkarni > Sent: Monday, November 13, 2017 10:59 AM > To: [email protected] > Subject: Re: CLIST to add LLQ into PS file > > Yes, we are sending file from Mainframe to windows. > > As i mentioned before, I dont experience in creating CLIST, So i am > completely stuck to implement this function. > > Can anybody help me making this process successful > > Thanks & Regards > Venkat > > On Mon, Nov 13, 2017 at 8:50 PM, Lizette Koehler <[email protected]> > wrote: > > > Venkat - > > > > the file is going from MF to Windows - Correct? > > > > System Symbols may not be available to your batch job. Many shops > > prevent the use of system symbols. > > > > You can have a clist that creates the dataset LLQ you want, then the > > Clist could be used to do the FTP (I have not done this in CLIST but I > > think you can do that) > > > > Then you can create the file that will reside on the PC with > > A_B_YyyyyMmmDddThhmmss or A_B_yyyymmddhhmmss > > > > > > I think this is what you want to happen. Is that correct? If so, then > > this is maybe not a clist question but more what symbols can I use on > > a PC to generate the timestamp on the file being sent there > > > > > > > > > > Lizette > > > > > -----Original Message----- > > > From: IBM Mainframe Discussion List > > > [mailto:[email protected]] On Behalf Of venkat kulkarni > > > Sent: Monday, November 13, 2017 7:04 AM > > > To: [email protected] > > > Subject: CLIST to add LLQ into PS file > > > > > > Hello Group, > > > > > > > > > I am not good at CLIST but we have requirement of using SFTP with > > > below detail > > > > > > > > > 1) We have to send one mainframe PS dataset to windows system 3 > > > times > > in a > > > day using SFTP > > > > > > > > > 2) For doing this, I wrote below command list which can achieve this. > > > > > > > > > > > > OPUT 'TEST1.PR.BAS' '/sftp/file/tstpre.np' > > > > > > OSHELL { echo 'lcd /sftp/file/' ; + > > > > > > echo 'bin'; + > > > > > > echo '!chmod 660 tstpla.np'; + > > > > > > echo 'cd C:\SFTP'; + > > > > > > echo 'mput tstpla.np' ; + > > > > > > echo 'lcd /sftp/file/' ; + > > > > > > echo '!rm -r /sftp/file/tstpla.np' ; + > > > > > > sftp -p -v [email protected]. <[email protected]>125 > > > > > > > > > /* > > > > > > > > > > > > I will use this code into one member and called by JCL as input. > > > > > > > > > 3) But as requirement is to send this file 3 times in a day, so > > > every > > time > > > this file gets over written by previous file. So, to isolate this, > > > we > > would > > > like to add date and time stamp at the end of file every name > > > before > > sending > > > from Mainframe to window. > > > > > > So, that every time file name will be different and will not be over > > written. > > > > > > > > > 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. > > > > > > > > > > > > Thanks in advance. > > > > > > > > > Regards > > > > > > Venkat > > > > > > -------------------------------------------------------------------- > > > -- 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 > > > > ---------------------------------------------------------------------- > 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
