|
Hi Buck,
Rather than reading the record> again in the edit routine, I > thought I could pass a pointer > to the record layout from the > file process program.This may not be exactly what you are looking for, but an older concept is the shared ODP. You can open the exact same access path and share the same file cursor between two programs. Program 1 does a READ and program two is positioned to the same record. OVRDBF SHARE(*YES).
Wait a minute Buck, let me clarify something.If I read RRN# 456 in file FILEA in program PGMA with a shared ODP override, then when I call PGMB, the same values will occupy the same record field values in PGMB?
Just getting reassurance, I just always thought it was safer practice to pass the values back and forth in a data structure in such cases, though obviously I've had occasion to pass the football back and forth between caller and called.
--Alan
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.