Getting files from MVS/zOS FTP

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.

Getting files from MVS/zOS FTP

Postby Harold76 » Wed Apr 30, 2014 11:19 am

I'm trying to create a project to get a file from a MVS z/OS ftp server, and no matter how I format the initial directory and source file names, using single quotes or not, it cannot file or get the file. The list parser is get to MVS z/os. XML is below.



Code: Select all
<project name="HDTEST" mainModule="Main" version="2.0">

   <module name="Main">

      <ftp label="HDTEST" resourceId="MVS" passive="true" initialRemoteDirectory="&apos;T.CS.WH.SOA&apos;" listParser="mvs" version="1.0">
         <get label="hdtest" sourceFile="&apos;DXFILE.DAT&apos;" destinationFile="/utl01/userdata/staging/mf/HD_DXFILE.DAT" />
      </ftp>

   </module>

</project>
Harold76
 
Posts: 4
Joined: Wed Apr 30, 2014 11:06 am

Re: Getting files from MVS/zOS FTP

Postby Support_Rick » Wed Apr 30, 2014 4:46 pm

When doing an FTP to an MVS, (mainframe), change the directory by executing an FTP command.

Code: Select all
cwd 'ftintb01'


Then do the FTP MANUALGET. The file will be something like:

Code: Select all
TST.FF01.P0TSTJOB.ADJUST(+0)


Normally, the transfer type will be ASCII

When doing an FTP PUT, execute the FTP Command:

Code: Select all
cwd ''  (that's single quote single quote --- no space in between)


Then manual put file name only, for example:

Code: Select all
TST.FF01.P0TSTJOB.ADJUST




Example XML Script:

Code: Select all
<project name="FTP to MVS system" mainModule="Main" version="2.0" logLevel="debug">

    <module name="Main">

        <ftp resourceId="Dev 54" version="1.0">

            <exec command="CWD &apos;VPNPEMCO&apos;" />

            <manualPut sourceFile="/file on your server/file.txt" destinationFile="ACH.P.CR0G1N00.V.PEMCO31(+1) " />

        </ftp>

    </module>

</project>
Rick Elliott
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support_Rick
Support Specialist
 
Posts: 164
Joined: Tue Jul 17, 2012 2:12 pm

Re: Getting files from MVS/zOS FTP

Postby Harold76 » Fri May 02, 2014 6:08 am

That worked. Thanks.

What does the cwd 'ftintb01' do? I understand cwd is change working directory, but I don't understand the ftintb01 value.
Harold76
 
Posts: 4
Joined: Wed Apr 30, 2014 11:06 am

Re: Getting files from MVS/zOS FTP

Postby Support_Rick » Fri May 02, 2014 8:13 am

'ftintb01' is just an example of something to type in. Like a Library name on an IBMi or a Folder on Windows Servers.
Rick Elliott
Sr. Product Specialist
(402) 944.4242
(800) 949-4696
Support_Rick
Support Specialist
 
Posts: 164
Joined: Tue Jul 17, 2012 2:12 pm


Return to Community Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron