× 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.



Take a peek in the docs for SCROLL CURSOR.  This is a variation on the standard 
cursor (reads forward by default) which allows you to read forward/backward 
with relative positioning.  

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-297-2863 or ext. 1863



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Turnidge, Dave
Sent: Friday, November 03, 2006 3:27 PM
To: RPG programming on the AS400 / iSeries
Subject: First go at embeded SQL ... With a subfile.


Well, I've jumped in over my head with this one... I wrote my first
maintenance program using a boilerplate source kindly given to me by Don
Nitke. (Thank you Don!) It actually looks pretty good AFAIAC. 

What I want to do is to be able to change the sort sequences in the
subfile. I think I could do this with multiple logicals, but I want to
know if this is possible with SQL, and therefore not need the logicals.

In starting my conversion, (and I'm just trying to replace the current
logic - additional sorts to come later), I'm beginning to slog through
Roll Forward and Back, getting the specific record I want to edit, and
updating that record. Can anyone point me in a more logical direction
than I am seeing now?

The SQL that I am using just reads forward, like READ. I got to Roll
Back, and got stuck with trying to find out what is the equivalent in
SQL for READP... My first embedded SQL program was just a list. No
problem (when I finally got it finished). But this is looking like a
major project. Any comments on reducing the perceived size of this
monster?

Any suggestions appreciated.

Dave


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.