How do I download posted RPG Code to my own system?

0 pts.
Tags:
RPG
RPGLE
I'm new to this forum. I've found RPG code in the programmer tips area that I'd like to use on my system but can't figure out how to get it on my system other than typing it all in by hand! One topic had a clipboard function but I don't understand how to get it from the clipboard to the Qrpgsrc. Can anyone assist? Thanks!
ASKED: January 12, 2006  9:19 AM
UPDATED: November 25, 2009  1:17 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • JPLamontre
    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
    0 pointsBadges:
    report
  • graybeard52
    Open the source editor (lpex), use windows copy & paste. No need to FTP, CPYF, or other gyrations.
    3,115 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following