× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I used to do prototypes in CL. Had I been able to use SQL like today
would have added some file updates. In the end they worked for the
intended purpose, then we wrote the apps in RPG.



On Mon, Jul 24, 2023 at 7:26 PM Roger Harman <roger.harman@xxxxxxxxxxx>
wrote:

MANY years ago, at a previous employer, we had a COBOL programmer for the
payroll application. But, all she had ever done in COBOL was batch and did
not know RPG. She was tasked with building a menu/driver for retrieving
Time & Attendance files from our 11 remote UNIX boxes. So, she went for it
in CL.

This was way before CL subroutines were ever even a glint in IBM's eye.

Never before or since have I seen such a CL. The prompting was about 3 or
4 screens deep. She used a TON of indicators - several for
controlling/tracking each site. It actually worked quite well - but, what
a sight to see the code.

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Vern Hamberg via MIDRANGE-L
Sent: Sunday, July 23, 2023 8:32 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Subject: Re: Complete subfile program supported in C++

Hi Thomas

Well, I don't know if I can agree that *...one should be able...* to use
any supported language on i to work with subfiles. Hey, how about MI?

Just kidding! I often do say *a language is a language is a language* to
mean basically what you say. At the same time, some languages are
designed to make certain kinds of programs easier to write. Such is the
case with RPG and business applications. COBOL might be a 2nd choice. Oh
- I forgot to mention that you can write full-function display apps in
CL, right? I've come to a place where I want to take my time with things
that most easily accomplish what I want to get done.

Just thoughts!

Vern

On 7/23/2023 10:11 PM, Thomas Burrows wrote:
Will repost under the C language area. Just because I want to be able to
do
it.

One should be able to take any display file that supports subfiles and
call
it from
COBOL
RPG
C++
any other supported language off the IBM Power i, AS400, or IBM i Series

Thomas

On Sun, Jul 23, 2023 at 10:04 PM Scott Klement<
midrange-l@xxxxxxxxxxxxxxxx>
wrote:

In my experience, people don't typically write subfiles in C/C++ - these
languages are usually used to write system tools and the like rather
than business applications.

Of course, you can do the same thing in C++ that you would do in any
other language -- so find an RPG or Cobol example and just do the C/C++
equivalent -- that's what I'd do. The _Ropen routine and all of it's
related functions provide the same functionality as the corresponding
RPG native I/O routines, so a couple of minutes looking them over in the
manual is typically all you need.

Strongly recommend that you join and ask your question in the C400-L
mailing list if you need deeper discussion.

On 7/23/23 1:02 AM, Thomas Burrows wrote:
All I can find in V7R4 C++ manual is a LOAD ALL subfile program with no

ADD
Change
Delete

Capacity. Does anyone have a full subfile in C++
--
Scott Klement
http://www.scottklement.com/

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email:MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/midrange-l
or email:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/midrange-l.

Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

--

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.