> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Howard Brazee > Sent: Friday, January 11, 2008 2:13 PM > To: [email protected] > Subject: Deleting after FTP > > I have a file with sensitive information on it that gets FTP'd to a > secure server. > > The JCL contains: >
[snip] > 12:55:19 T01F2030I FTP2 returns CC=8 > With an OC9 > > I was hoping a separate proc would allow me to do the deletes from > within this job. What other options do I have? It sounds like you are using the CA TCP/IP stack instead of the IBM one. The problem comes in due to the fact that in the CA stack, the ftp process is actually done in the TCPIP stack and not in the job. That is, the CA stack actually allocates the DSN to itself. If the DSN is used later in the job with an exclusive ENQ (DISP=SHR|NEW|MOD), then the TCPIP stack cannot allocate the file (it is in use by the job) and the ftp aborts. Instead of deleting via JCL, I use IDCAMS or IKJEFT01. With IKJEFT01 (TSO/batch), my JCL looks like: //DELE EXEC PGM=IKJEFT01, // PARM='DEL ''dsn'' ' //SYSTSPRT DD SYSOUT=* //SYSTSIN DD DUMMY -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

