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
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="'T.CS.WH.SOA'" listParser="mvs" version="1.0">
<get label="hdtest" sourceFile="'DXFILE.DAT'" destinationFile="/utl01/userdata/staging/mf/HD_DXFILE.DAT" />
</ftp>
</module>
</project>
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
When doing an FTP to an MVS, (mainframe), change the directory by executing an FTP command.
When doing an FTP PUT, execute the FTP Command:
Example XML Script:
Code: Select all
Then do the FTP MANUALGET. The file will be something like:cwd 'ftintb01'
Code: Select all
Normally, the transfer type will be ASCIITST.FF01.P0TSTJOB.ADJUST(+0)
When doing an FTP PUT, execute the FTP Command:
Code: Select all
Then manual put file name only, for example:cwd '' (that's single quote single quote --- no space in between)
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 'VPNPEMCO'" />
<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
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
'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
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
4 posts
Page 1 of 1