Well, the SET ... TO ENTRY ... definitely loads (with the assumption that the 
module is not already in memory, in which case it just gives you the 
entry-point address). At least ordinarily. I don't know about the ENTRY which 
is in the same program. An ENTRY in a different program (with an ALIAS) should 
just act like any other module.

As to why it then wouldn't work... I guess it (the COBOL compiler) is being too 
clever, and it knows that your ENTRY is in the same program. Or, for the SET 
knows it is in the same program... or both... or something else. 

As I mentioned before, it is an interesting situation, but I can't see 
application beyond that - even if you work out how to get it going - with 
V3.4.x, there's not necessarily a guarantee that it will do the same thing with 
V5+. It is neither documented as working, nor documented as not working. That's 
a pretty wide grey area. If your site is the only one doing this, you're not 
going to get a fix for V8 that just happens to have come along and broken 
whatever you work out (if you work something out).

Have you a cast-iron reason for sticking with the ENTRY/ALIAS over the 
two-program approach?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to