07 ftping mainframe pc

© 2019 - State of Utah - Department of Technology Services
Jump to navigation Jump to search

FTP’ing from Mainframe to PC

Once the connection is established, transfer files from the mainframe to the PC by clicking on a file and dragging it to the PC area on the left. If you want the file transferred to your desktop, you could click on the back-arrow folder while you are point at your PC, then you could click on "Desktop". A message similar to the one below will be displayed, asking what format the file should use. If Binary is selected, the transferred file will be in EBCDIC format, which is unreadable on a PC. To produce a readable file, select the ASCII format to have the characters translated from EBCDIC to ASCII. Click OK to confirm.


074 - smart transfer file type.png


The file will be transferred as requested. However, the directory will show the file (as shown below) without an extension on the PC side (the highlighted portion). Even though this is a text file, it will not automatically carry a file extension if it is copied from the mainframe directly to a file on the PC with a drag-and-drop action.


075 - file transferred.png


To change the file extension to TXT, right-click the file and select the Rename option from the list (in this case, ANY.STATE.YRQ.BY.TCOV). Change the extension to ...TCOV.TXT.


076 01 - change file name.png


A warning message will be displayed. Verify the file extension is renamed correctly and select Yes. This will rename the file.


077 01 - rename warning.png


To verify the procedure worked correctly, right-click the file the PC (left) side and open it with Notepad (this should be the default program). The report will open (reference the image below), but it will have the carriage control character displayed (a 1 means a new page, + means stay on the same line for an underscore, and 0 means skip a line). This is a simple report, but serves as an example of how the FTP process works.


078 - ftp d report.png


Related Links