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



Buck, 
There ae no F-Specs at all.  The original program accessed the data via
SQL, so I turned those processes into functions
The bound program doesn't have anything in it other than the data
processes.  Ie I had a subroutine that 'Fetched a record' now it's a
procedure.  I am using Data Structures and I can see the data in the
data structure's both after the fetch in the bound program and after it
returns in the calling program.  I can see it being written to the
subfile and the RRN is 12 at the point of the EXFMT.  SFLDSP and
SFLDSPCTL are on.  

Michael Smith
iSeries.mySeries.


-----Original Message-----
From: Buck Calabro [mailto:buck.calabro@xxxxxxxxxxxx] 
Sent: Thursday, July 08, 2004 12:33 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Subfile problem


> Yes, calling a function.

Are there two F-specs, and two open data paths?  Is it possible that the
bound program is filling _it's_ subfile, and the display program is
trying to display _it's_ empty subfile?  I have never actually tried to
do this, so I have no idea how the working code would look. I guess my
first stab would be to use share(*yes) on the open, but I'd have to do
some reading on shared ODB for display files.

Either that, or have the bound program pass back the data (in a DS or
something) and have the display program actually do the writes to the
subfile.
  --buck



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.