Reading from multiple members in a CL program Simon Hutchinson

​It has been a while since I wrote a post about CL. I have been given an opportunity to do so again when I received this question:

If my file has 5 members and I want to read only first record of each member in CL how can we do that ?

Yes, this is entirely possible using CL, with no help from RPG.
Before I start showing CL code I am going to need a file, which you will not be surprised I called TESTFILE, and it is in my library, MYLIB. The DDS code for this file is:

01 A R TESTFILER
02 A TEXT 45A

Read more » Read More 

Verified by MonsterInsights