.st0{fill:#FFFFFF;}

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

 December 11, 2014

By  NickLitten

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.

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Trekkie, 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.

Nick Litten

related posts:




{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

I’m always looking for awesome input, feedback and critique!

>