Yeah, LOAD, DELETE, LOAD offends me too.

It is a single assembly so I am hoping I can figure out a way to automate
knowing the length. The LOADing program is huge so it would not be out of
the question to include the little assembly in the loading program as a
total dummy just so I had the size as the difference between A(EXTRN end)
and A(EXTRN start).

I think a better solution is to create a COPY member that has the size as an
EQU and that I include in the loading program and also in the loaded
program. In the loaded program I can say DS
0XL(equated_length-computed_actual_length). That's a trick I have used a
lot. The DS will generate an error if equated_length is less than
computed_actual_length, and then I know to change the EQU in the COPY. Not
perfect but better than LOAD, DELETE, LOAD. Storage is cheap. I can pad my
1K+ by 50% and it won't be the end of the world.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Tony Harminc
Sent: Tuesday, February 08, 2011 6:01 PM
To: [email protected]
Subject: Re: What is "address spec terminates" in context of LOAD EOM=YES?

On 8 February 2011 17:30, Jim Mulder <[email protected]> wrote:
>> > issue the STORAGE OBTAIN in SP=241 yourself. Then issue the LOAD,
>> pointing to that area
>>
>> Thanks. I had decided to ask about that. Sounds like less of a re-write
than
>> going from LOAD to CSVDYLPA. The load module is small (a little over 1K)
>> and fairly stable. I already have an SP=241 area that I could easily
enlarge
>> by 1K+. Any negatives to this approach? Any reason not to do it this way?
>
>  CSVDYLPA will create a CDE so that things like IPCS WHERE and
> SLIP can identify the module name.  LOAD to address will not
> create a CDE.  For that reason, I strongly recommend
> CSVDYLPA over LOAD to address.

There is also the matter of figuring out how much storage you need to
obtain. As you say your module is small and static, this sounds like a
non-issue, but with big modules you need to know. You can fall back to
doing a normal LOAD, followed by a DELETE, then STORAGE OBTAIN and
directed LOAD, but that somehow offends my sense of what's right. Or
you can ask the Binder API, or fiddle about with PDS directory stuff,
or...

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