Warning: Declaration of TCB_Menu_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /home/nicklit/www/www/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-menu-walker.php on line 620

Warning: session_start(): Cannot start session when headers already sent in /home/nicklit/www/www/wp-content/plugins/userpro/includes/class-userpro.php on line 222
Writing RPG program code using SEU getting error - "The keyword is not recognized; keyword is ignored" - Nick Litten is IBM-i, AS400 iSeries RPG Programmer and Nerd

Writing RPG program code using SEU getting error – “The keyword is not recognized; keyword is ignored”

IBM i

Dec 11

SEU vs. RDi – what are the advantages?In the 1980’s and 1990’S the source code editor was a text based green screen tool (PDM/SEU) which i…Aug 5 2016www.nicklitten.com

Why doesnt SEU let me enter the HANDLER keyword to my F-SPECS in RPG?

Because, SEU is a code editing program that was designed decades ago (it sounds *really* old if you say it like that) and isn’t aware of any of the newer RPGLE operation codes.

Source Entry Utility error with new 7.1 RPG code

You have two basic solutions:

  1. Use a modern IDE to edit your source (IBM Rational Developer, Websphere Developer, RPG NextGen, RPG Alive or choose any other of the many solutions out there)
  2. Stick with SEU but learn to work around its limitations 🙂

Personally I tend to use RDi for most of my IBM i coding.  Now saying that, I also love SEU. I used this for many years and still have a soft spot for its excellent search/replace utilities and it lets me do something quicker.

So, how do I enter modern RPG opcodes using SEU?

Let’s go through an example of updating an existing RPGLE source member to add the Handler code for Profound Logic‘s screen handler routine.

When you try to manually type the HANDLER keyword against the DSPF you will note that SEU immediately complains “The keyword is not recognized; keyword is ignored.” This is because SEU syntax checking is frozen at the 6.1 level for RPG. IBM is no longer providing updates. This means that SEU does not recognize the HANDLER keyword as valid.

But, it is a valid keyword so we can just ignore the SEU syntax warning when entering this new keyword and compile as normal.

The simple way to save the source is to use the SAVE command in SEU==> command box

seo save command

type “SAVE” it will tell you “Syntax errors exist. Press Enter to save.” just press again to update the source code

Alternatively you could exit the source with F3 and then change the Change/create member parm to “Y” and the “Return to editing” to “N”

save rpg code and exit

Horses for courses.

Follow

About the Author

IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.