Browsed by
Tag: ILE RPG

SEU Exit Program in ILE RPG

SEU Exit Program in ILE RPG

I know, I know. No one uses SEU anymore. Well I do. This SEU exit program handles my @@ and @@@ line commands. It fixes the allocation for specific varying character fields. So something like this: gets converted to this: To invoke it put @@ on a line and press enter. To update a block of code use @@@. Unfortunately using the block command updates the source change date on the line even if the code on that line isn’t…

Read More Read More

Get Job Date in RPGLE

Get Job Date in RPGLE

The %date() built-in function, by itself, will return the System date. The following will return the Job date:

*CALLER and System i Stored Procedures

*CALLER and System i Stored Procedures

Activation groups may be the most important concept to understand when creating *PGM and *SRVPGM objects on the System i (AS/400). Get this wrong and you will be chasing your tail for hours trying to figure out why data being returned to you is not what you were expecting.