title: How to get a list of members out of an IBM i file?
body: <p>New to using IBM i here, and haven't been able to find the solution to this problem in the Knowledge Base.</p>
  
  <p>I have a library. Inside that library I have a file. Inside that file I have several members. Every member is a .c file.</p>
  
  <p>What I want to do is write a .cpp that looks inside that file at the members, get each member's name, and then run CL stuff with the member.</p>
  
  <p>Using qp0z1170.h I am confident I know how to run the CL commands, but I can not seem to figure out how to iterate through the list of members and get their names.</p>
  
  <p>Any help would be greatly appreciated.</p>