I am starting to use /Free coding in RPG and like the clarity and readability of the code. However I can not get my head around the replacement to using *ENTRY and a PLIST to use parameters passed in to the program. Sometimes this is passed on a call from a CL program, at other times it is a direct call from another program. For instance. I use one PLIST on *ENTRY with a parm called Alist. I then have Alist defined as a data structure with four fields: Batch (4A), InvDate (8a), Division (3a) and Payer (10a). My cheat sheet for Free by Bryan Meyers says use PR/PI definitions instead of Plist. I have looked at the IBM manuals and internet search results for defining PR/PI and I just get totally confused. Can anyone suggest a good clear guide to how to define and use PR/PI definitions?
January 31, 2010 4:55 AM
January 31, 2010 11:09 PM