|
If you have not already done so, get the "Application Display Programming" manual at InfoCenter - lots of stuff on subfiles, etc. Having said that, along with the other suggestions you got, maybe you could write a confirmation screen - even use the same one as the main display without option field - take the various confirmation screens in PDM as an example. You would, as stated by others, do CHAINs in a loop, either a FOR with the number of records in the subfile, or with the appropriate error for running off the end of a subfile - the first option is safer. You CHAIN on the subfile RRN. Here's a barely serious suggestion -- If you really want to work hard and have some fun, go with UIM panel groups - the confirm screen is almost automatic with these. Not the easiest way to go, but IBM does most of their stuff with them. Look in the above-mentioned manual. Lots of us use this for help text but not many of us outside IBM use them for displays or printing. HTH Vern -------------- Original message -------------- From: sunny singh <franky_four_fingures@xxxxxxxxx> > hi all.. > i have a prob regarding subfiles.. > i have a load all subfile displaying for example four selected records by the > user. > now i want all the records to be deleted when the user presses certain key > say > f11. > i am having a prob when i tried to do this by reading the subfile record > format from the top and then chaining to the physical file in a loop..can any > one plz explain the proceedure for just idea of how this could be done > example... > date xyz bank > time > > number name dept > salary > 101 john comp > 12344 > 102 franky mba > 38474 > 103 rocky comp > 123454 > 104 nick > b.tech 345676 > > how can we delete above all four records that has been displayed on the above > screen.niumber beeing key field. > why cant i perform readp or reads operation on this subfile. > thanks in advance... > please do reply. > have a nice day........ > > > > > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1¢/min. > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. >
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.