CL, as provided by IBM, only supports message subfiles. The <a href="http://www.powercl.com/">PowerCL: CL for Files</a> product allows full support for subfiles. The display file containing the subfile record formats can be declared with either the <a href="http://www.powercl.com/clf/clfcommands/dclfclf">Declared File using CLF (DCLFCLF)</a> command or the <a href="http://www.powercl.com/clf/clfcommands/file">File Description Specification (FILE)</a> command.
Bruce Vining
(one of the PowerCL: CLF developers)
-------------------------------------
Hi,
You can declare a Physical, Logical or Display file in CL/400 using the DCLF statement. You can read a Physical or Logical using the RCVF statement. You can write a Display file record using the SNDF command or read one using the RCVF command, you can write and read a Display file record using the SNDRCVF command.
CL/400 (to my knowledge) does not support subfile display formats. For subfile processing you will need to use a HLL such as RPG or COBOL.
Regards,
Martin Gilbert.
Last Wiki Answer Submitted: September 20, 2009 1:09 pm by Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.