I've hacked together a nice little workflow for myself that enables me to edit code on my PC, and quickly and easily get it to and from the IBM i with FTP (Some things never change! I've been doing variations of this since 1991!). FTP, in the right hands, can be pretty cool.That line, and the line before it, need to be a single line on the PC. The last line above is continued with the > character for publication purposes. Quote rcmd chgpfm file(rpglesrc/mylib) mbr(mymbr) srctype(RPG) For example, if you wanted to use FTP to also set the source type and description for a member, you could call CHGPFM like this: ftp Assuming you have the proper authority to the IBM i object, you can use FTP to submit commands to the IBM i. Here's an interesting FTP tip that is perhaps more revealing than it is useful. Use PDM or the CHGPFM command to change those. When you use FTP to send a new member to the IBM i, its source type and description won't be set. Use these FTP commands to send a PC file to an IBM i source member: ftp The ascii command ensures you're receiving or sending ASCII data. See MC Press's detailed explanation of namefmt for more details (I'm pretty sure it was written by IBM midrange guru Joe Hertvik). The quote site namefmt 0 command enables the library/mber naming for the ftp get and put commands. Open (Enter user ID and password as prompted) Use these FTP commands to retrieve an IBM i source member to a PC file: ftp Use the following commands to receive or a send a member from and to the IBM i. In this tutorial, you will learn how you can download and upload files on an FTP server using Python. One of the main features of an FTP server is the ability to store and retrieve files.
To start FTP on Windows, open a DOS command line and type FTP and press enter. Disclosure: This post may contain affiliate links, meaning when you click the links and make a purchase, we receive a commission. To further explore FTP on Windows, see the list of Windows FTP commands. Assuming your IBM i has FTP enabled, it's a snap to perform this task with Windows' built-in FTP client. Occasionally you might need to send or receive a source member from/to your Windows PC and the IBM i.