Difference between revisions of "07 ftping mainframe pc"
Line 22: | Line 22: | ||
− | [[File:077_01_-_rename_warning.png| | + | [[File:077_01_-_rename_warning.png|400px|center]] |
Line 28: | Line 28: | ||
− | [[File:078_-_ftp_d_report.png| | + | [[File:078_-_ftp_d_report.png|1000px|center]] |
Revision as of 23:21, 29 January 2020
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.
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.
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.
A warning message will be displayed. Verify the file extension is renamed correctly and select Yes. This will rename the file.
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.
Related Links