In <[EMAIL PROTECTED]>, on 05/01/2007
   at 01:43 PM, Ira Broussard <[EMAIL PROTECTED]> said:

>I understand the linkage editor can split a record anywhere it wants. 
> However, why does that cause a problem if I am concatenating all of
>the records  for  a load module into a single variable and scanning
>that variable? 

For starters, there are control or control/RLD records between the
text records.

>If my search string was split across the previous record and the 
>new record, it is correctly "un-split" in the concatenated storage 
>area.

No it isn't. Further, even if you revised the code to remove the
control and control/RLD records, you'd still have to deal with gaps.
The only bulletproof way to do it is to pre-allocate a variable to the
size of the module and to overlay each text record on it, at the
proper offset.
 
-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to