How to create a logical file with data from more than one member Simon Hutchinson

​[[{“value”:”I wrote an earlier post about how to define a file twice in a RPG program so that I can use two members in the file. This led to a further discussion about could I combine data from those multiple members into one using a DDS logical file. This post demonstrates the results of those subsequent discussions.
I am going to use the same file as I did in the earlier post. If you have questions about file layouts, etc., check that post.
I am going to add a third member to the file, which will be called THIRD:

ADDPFM FILE(TESTFILE) MBR(THIRD) TEXT(‘Just added’)

I can list the members in TESTFILE using the SYSMEMBERSTAT SQL View:
Read more »”}]] Read More 

Leave a Reply

Verified by MonsterInsights