|
Hello Don, What are you trying to accomplish? Are you trying to determine if ANYTHING in the subfile record format changed or WHICH subfile record has changed? Fetching only the changed subfile record is accomplished by a READC RPG operation (or READ SUBFILE NEXT MODIFIED in COBOL). If you are performing validation and redisplaying incorrect values to the user you need to update the subfile record with SFLNXTCHG conditioned on otherwise you won't get the data unless the user actually corrects it. The response indicator associated with the CHANGE keyword should be turned on by the system if the user types something into one of the fields. If the user does not type anything (even if your program changed the data, or it was previously changed by the user) the CHANGE indicator will not be turned on. If the user is entering data into the field or record format with CHANGE and change is not turned on then that is a bug. By the way, using CHANGE on a subfile record is an unusual processing technique. Regards, Simon Coulter. //---------------------------------------------------------- // FlyByNight Software AS/400 Technical Specialists // Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 // Fax: +61 3 9419 0175 E-mail: shc@flybynight.com.au // // Windoze should not be open at Warp speed. //--- forwarded letter ------------------------------------------------------- > Date: Wed, 03 Jun 98 06:06:15 -0400 > From: "Don Schenck" <schencd%AM_LZCH%VASELL@mr.mops.wl.com> > To: MIDRANGE-L@midrange.com > Reply-To: MIDRANGE-L@midrange.com > Subject: CHANGE keyword on Subfiles > Sensitivity: Company-Confidential > Importance: normal > > I have a problem using the CHANGE keyword on my subfile. > > I have CHANGE(56) in the DDS, but indicator 56 is only getting set ON after >the > FIRST change to the subfile. Subsequent changes are NOT setting on *IN56. > > HELP! > > Peace, > > -- Don Schenck > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.