You can use a UIM Panel to display records, which gives a similar effect
I found this ancient example
http://www2.systeminetwork.com/resources/code/index.cfm?fuseaction=ShowCodeInFile&Year=1997&Month=09&Page=000&HostType=AS400&FileType=TXT&PCName=Readme.TXT&HostName=Readme
Last Wiki Answer Submitted: February 15, 2012 2:52 pm by Yorkshireman5,505 pts.
All Answer Wiki Contributors: Yorkshireman5,505 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.
There is no direct subfile capability for CL. (It might be available through various calls to C library functions, but seriously why would anyone do that?)
UIM list panels are a viable alternative. They’re more capable than subfiles as well. However, it does require adding the UIM source language and the experience with UIM APIs to your work. (The source language is a “markup” language similar to HTML. The APIs are perhaps average in difficulty.)
DSM (Dynamic Screen Manager) APIs are also possible. They’re a step beyond the UIM APIs. One advantage(?) is that they don’t require any extra display file not UIM panel group. They’re totally “dynamic”.
CL, out of the box, only supports message subfiles. CL (ILE and OPM), when using Control Language for Files (CLF) has full subfile support.
There are both free and charge options of CLF. Using the free run-time support and standard CL you can develop an application utilizing subfiles though you will need to treat the subfile records as if they we program described. Using the CLF precompiler, which is fee-based, you can simply declare the *DSPF. In both cases you then perform I/O against the *DSPF using CLF commands. Using the precompiler is generally the way to go due to productivity gains.
Note that I was the developer of CLF and so this should be read as a vendor response.
I had hoped Bruce Vining ( Bvining ) would chime in. If his CLF is acceptable for your use, I’ll add that I would have no concerns about using anything he makes available.
I do not believe that you can code a Subfile in a CLLE module.
Subfiles can be coded in RPGLE and COBOLLE
You can, however, code a message subfile in CLLE.
Here is an example:
http://www.mcpressonline.com/tips-techniques/cl/techtalk-cl-subfiles.html
Sheesh – that url threw the system.
just google for WRKPGMREF and follow your nose.
There is no direct subfile capability for CL. (It might be available through various calls to C library functions, but seriously why would anyone do that?)
UIM list panels are a viable alternative. They’re more capable than subfiles as well. However, it does require adding the UIM source language and the experience with UIM APIs to your work. (The source language is a “markup” language similar to HTML. The APIs are perhaps average in difficulty.)
DSM (Dynamic Screen Manager) APIs are also possible. They’re a step beyond the UIM APIs. One advantage(?) is that they don’t require any extra display file not UIM panel group. They’re totally “dynamic”.
Tom
…display file not UIM panel group.
I’d edit that if I could — “nor UIM panel group.”
Tom
CL, out of the box, only supports message subfiles. CL (ILE and OPM), when using Control Language for Files (CLF) has full subfile support.
There are both free and charge options of CLF. Using the free run-time support and standard CL you can develop an application utilizing subfiles though you will need to treat the subfile records as if they we program described. Using the CLF precompiler, which is fee-based, you can simply declare the *DSPF. In both cases you then perform I/O against the *DSPF using CLF commands. Using the precompiler is generally the way to go due to productivity gains.
Note that I was the developer of CLF and so this should be read as a vendor response.
I had hoped Bruce Vining ( Bvining ) would chime in. If his CLF is acceptable for your use, I’ll add that I would have no concerns about using anything he makes available.
Tom
Thanks Bruce.