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.
4 posts Page 1 of 1

Harold76

Posts: 6
Joined: Wed Apr 30, 2014 11:06 am

Post by 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>

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by 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
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

Harold76

Posts: 6
Joined: Wed Apr 30, 2014 11:06 am

Post by 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.

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by 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
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
4 posts Page 1 of 1