

I copy the code to my PC as a text file and then FTP it into my source code. I usually put the .txt file into my C:/ root directory.
From my PC, I bring up “Run” and at the command prompt, I key in ftp ’111.111.111.111′ to get to my iSeries. Once in ftp, I key “put xyzsource.txt MYLIB/QRPGLESRC.XYZSOURCE”. Viola, the source file is in my QRPGLESRC file.
=========================================================
Simplest for me is to paste it into a text file in my IFS /home directory through a basic mapped drive. Then it’s just a CPYFRMSTMF into ‘/qsys.lib/mylib.lib/qrpglesrc.file/mynewmbr.mbr’.
Since I create the text file from Windows, it automatically has the correct CCSID. And because my system has a valid QCCSID specified, there’s no need for any CCSID parms on the command. (You can probably issue CHGJOB CCSID(37) if your system has the incorrect QCCSID 65535.)
Tom


if you can copy your text file to IFS (here sylk_h.txt), then you can
CPYFRMSTMF FROMSTMF(‘/IfsDir/Sample.txt’) TOMBR(‘/qsys.lib/mylib.lib/qxxxsrc.file/sample.mbr’) MBROPT(*REPLACE) STMFCODPAG(*PCASCII) CVTDTA(*AUTO) DBFCCSID(*FILE) TABEXPN(*NO)
CHGPFM FILE(mylib/QxxxSRC) MBR(sample) SRCTYPE(xxx) TEXT(‘description’)
If you can only copy to QDLS, then you can
CPYFRMPCD FROMFLR(JPL) TOFILE(QTEMP/JPL) FROMDOC(sample) TOMBR(sample) TRNTBL(*DFT) TRNFMT(*TEXT)
more details in french at http://jplamontre.free.fr/AS400/CopieCode.htm