200 pts.
 As400/CLLE issue
can we load subfile through clle?


Software/Hardware used:
i-series
ASKED: February 15, 2012  7:45 AM
UPDATED: March 17, 2012  1:31 AM

Answer Wiki:
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  Yorkshireman   5,505 pts.
All Answer Wiki Contributors:  Yorkshireman   5,505 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 44,220 pts.

 

Sheesh – that url threw the system.

just google for WRKPGMREF and follow your nose.

 5,505 pts.

 

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

 108,360 pts.

 

…display file not UIM panel group.

I’d edit that if I could — “nor UIM panel group.”

Tom

 108,360 pts.

 

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.

 6,055 pts.

 

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

 108,360 pts.

 

Thanks Bruce.

 44,220 pts.