I need to be able to intercept the FTP responses from the server. Here I am ringing the bells at the gate! I use Net::FTP to send a job to OS/390. This is done by using the site command "SITE FILETYPE=JES". This opens a pipe to the job scheduler (JES) on the mainframe and the STORed file is interpreted as job. No problem. Everything works fine. In face I use MVS::JESFTP by Mike Owens. When the job is submitted via the STOR, the OS/390 ftp server responds with a job number, which I can use to track output, since there can be many jobs with the same name. My problem is I am not able to catch the responses from the OS/390. Command line client FTP shows the following trail.. Notice the "JOB23077" below? I need to parse it out.
ftp> site filetype=jes
200 SITE command was accepted
ftp> put TEST.SEQ3
local: TEST.SEQ3 remote: TEST.SEQ3
500 unknown command EPSV
227 Entering Passive Mode (167,184,25,2,14,143)
125 Sending Job to JES internal reader FIXrecfm 80 100%
|*********************| 875 1.69 MB/s --:-- ETA
250-It is known to JES as JOB23077
250 Transfer completed successfully.

In reply to How to get FTP log via Net::FTP by any2xml

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.