Easy code copying -- without CODE400

Easy code copying -- without CODE400

If the source code we want to copy consists of a few short lines, copying would be so easy. If the source code consists of several lines (and some lines can be lengthy), it's not so easy to copy. We've came up with a way to make the process a little easier all the way around.

The first major step is to transfer those several lines of code you want to copy into an iSeries source member. Once this is done, the only thing you may have to worry about is the proper column placement. If you're lucky enough, the codes will be stored into the correct format. If you're not, don't lose hope, SEU can handle this with ease.

So, when I want to copy a program source, here is what I usually do:

1. Copy the whole program source to the clipboard, paste into notepad, and save it to a PC folder.

2. Send the file to the iSeries host using Client Access.

  • In the Data Transfer To iSeries screen, specify the PC filename, iSeries System, and Library/File(Member)
  • Go to the iSeries File Details screen. Uncheck the 'Use PC file description' checkbox and select 'Yes, create member' from the 'Create iSeries object' dropdown list. You may or may not assign a 'Member text'.
  • Click OK.
  • Click on 'Transfer data to iSeries'.

    3. Go to the iSeries green screen and locate the member.

    4. Specify '2' on the member and press F4 to bring up the STRSEU prompt.

    5. Specify

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

  • the correct source type, press Enter.

    6. On the SEU edit screen, determine the number of characters (n) to move (to the right or to the left). Type RRn (block shift n characters to the right) or LLn (block shift n characters to the left) on the first sequence number line, type B at the SEU command line and press Enter. Complete the block command by typing RR or LL (whichever is applicable) on the last sequence number line. Press Enter.

    That's it, no piece meal work.

    ================================== MORE INFORMATION ON THIS TOPIC ==================================

    The Best Web Links: tips, tutorials and more.

    Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

    Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was first published in October 2004

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.