If you specify the field name and SFLPGMQ on the subfile record, you build the subfile one message at a time with separate output operations to the subfile record format. For each output operation, the message reference key must be in the first field of the record (SFLMSGKEY keyword), and the name of the program message queue must be in the second field. At the time of the output operation, the OS/400 program retrieves the identified message from the queue and places it in the subfile as a record.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.