From time to time you will need to create scripts that access 5250 subfiles. Here are some techniques may be useful to you in different situations:
Subfile Lines per Entry
Identifying Subfile fields
Referencing Subfile fields
Iterating Subfile Rows
Paging down or up a subfile
Locating a specific value in a Subfile and making the selection