• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Guru Readers Contribute Their Favorite SEU Tips

    June 21, 2006 Hey, Ted

    I have a couple of comments about your article, Lesser-Known SEU Commands. First, I’m still unashamedly an SEU user for one main reason: I like the “instantaneousness” of it. I can log in to the green screen and start editing a source member within SEU in just a few seconds, vs. the load/startup time of WDSc, the loading of libraries and files and member lists, and so forth.

    Yes, I know–I can preload WDSc. I can set filters for libraries and files and members. I can create project definitions to load and display the views I need, etc. But nothing beats SEU for getting down to business very quickly. And often this quick start makes up for the relative inefficiency of SEU versus WDSc.

    As for your SEU tips, I occasionally use the “hide text” technique (your tip #4), but I find that using F15 (Browse/Copy) and “browsing” the same member that I’m editing is even handier. I can then scroll both windows, to see as much or as little of each code section that I need. And, of course, I can also use F6 to change the relative window sizes. Not to mention, you definitely want to remember that when you accidentally delete something (we never do that, right?), you can instantly recover from your “previous version.”

    –Jim

    I got quite a bit of response to that article. Here are more tips and comments from several professionals who read this newsletter. In those cases where more than one author submitted the same tip, I tried to pick a good representative.

    I haven’t used SEU in a good while, but I used to use XX in combination with the Change command. Let’s say you have a block of L1 calculations that you want to duplicate to L2. Use CC…CC…B to copy the block. Then, use XX…XX to exclude all the lines you just copied. Now, on the SEU command line at the top, use ‘c L1 L2 a x’. The a and x arguments tell SEU to change L1 to L2 for all occurrences that are excluded. Then use F5 to see the excluded lines that didn’t meet your search criteria.

    –Buck

    Does everyone know the commands to see the errors in a compilation listing? (As if you’d ever have any!?) Try the following:

    1. From an SEU edit member screen, press F15.
    2. Change Selection from ‘1’ (member) to ‘2’ (spool file).
    3. If the last compilation was done by the user profile that you are currently using, pressing Enter splits screen into two panels. The top one shows the source member that is being edited. The bottom panel displays the spool file generated by the last (failing) compilation.
    4. On the SEU command line type ‘*err’ and scan for it with F16.
    5. SEU positions the cursor to the first error in the compile. Subsequent use of F16 will show other errors.

    Hope that helps!

    –David

    This works if you compile in batch, David. For interactive compiles, you have to change the Job portion under Browse/copy spool file to the identifiers for your interactive job. (It won’t work to key a single asterisk to indicate the current job.) This is one of the main reasons I typically compile in batch when editing with SEU.

    —Ted

    Use the O and OO commands to overlay text. Type C in the line you wish to use as the overlay. Type O to overlay a single line, or OO at the starting ending lines of a range of source you wish overlaid. This is especially useful in shops where modifications to code are never removed, only tagged.

    –Robert

    I use WDSc most of the time, but for quick fixes, I use SEU. I occasionally use the O, On and OO overlay command with the C (Copy) command. Copy with overlay is great for copying a blank comment line over blocks of code that I want to comment out.

    A couple of other handy SEU commands:

    • CR/CCR – Allows you to copy a line or a block to multiple targets until you hit F5.
    • RPP – Block Repeat. Handy when copying a sub-routine skeleton.
    • RRn – Move a block n spaces to the right. Very nice for indenting in free-format.
    • LLn/LLtn – Move a block n spaces to the left and optionally truncate.

    –Bill

    My work requires me to “mod mark” all changes to code. After making extensive changes to a source member, here is how I check to make certain all changed lines have been mod marked.

    1. On the SEU command line, type in h ‘ ‘ a. This hides all lines containing a blank, which is everything.
    2. Press F14 for Find/Change Options. Change Occurrences to process to 2 (All). Search for date defaults to today, which is usually what you want. Enter in the Compare field a 2 for Equal to or a 3 for Greater than if you back dated the search date.
    3. Press F16. You should now see every line you modified and each line should contain your mod mark.

    If this is too much to visually review, then enter h /mod a where /mod is your mod mark. By hiding all the mod marked lines you should see no remaining lines or see the lines that are not mod marked.

    –Denny

    I prefer to press F11, rather than F19 and F20, to window back and forth across the display.

    To get more editing area, hide the function key legend. Press F13 and change Full screen mode to Y.

    –Cletus the Codeslinger

    When I told faithful reader and programmer extraordinaire Buck about the response I had received to the SEU tips, he pointed out that SEU is very popular, yet people still don’t use SEU to its capacity!

    May I make two more comments in closing? First, I hope to be getting my grubby hands on WDSc Lite soon, and I am looking forward to it. Second, I think SEU’s a great editor. For me, it’s a matter of perspective. It doesn’t have some of the nice features in CODE and LPEX, but the situation could be much, much, much, much worse. I could be editing with vi on a Unix system! 😉

    Thanks to everybody who wrote.

    —Ted

    RELATED STORY

    Lesser-Known SEU Commands

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Sponsored Links

    iTera:  High availability solution for $50 a day - includes IBM System i5 Hardware
    COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida
    LANSA:  An entirely different approach to application modernization and innovation

    System i Helps Catholic Charities Spend Its Money on the Needy Autostarting WAS 6.0 on the System i

    Leave a ReplyCancel reply

Volume 6, Number 24 -- June 21, 2006
THIS ISSUE SPONSORED BY:

ProData Computer Services
WorksRight Software
COMMON

Table of Contents

  • Guru Readers Contribute Their Favorite SEU Tips
  • Autostarting WAS 6.0 on the System i
  • Reader Feedback on Setting Library Lists

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • More Power Systems Price Hikes, This Time They Are “Directional”
  • AI Is Not Just For Developers, It Is For Everyone At Your Company
  • Guru: Finding Data In The Forest – Exploring Three-Part Naming In SQL
  • Former IBMer’s New Book Puts The Midrange In The Spotlight
  • Have You Tried To Buy A Server Lately?
  • GenAI Is The Death Of Deterministic Project Budgeting
  • PTC Adds Support For VS Code With Implementer 12.7
  • Guru: Single Threading A Program Execution
  • As I See It: Push Back
  • IBM i PTF Guide, Volume 28, Number 21

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle