HP3000-L Archives

October 2013, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Robert W. Mills" <[log in to unmask]>
Reply To:
Robert W. Mills
Date:
Wed, 16 Oct 2013 11:38:53 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Put SUBPROG into an executable library

:COB85XL SUBPROG,SUBOBJ
:LINKEDIT
LinkEd> BUILDXL XL=SUBXL
LinkEd> ADDXL FROM=SUBOBJ
LinkEd> EXIT

Now run the program

:RUN MAINPROG;XL="SUBXL"

HP Link Editor manual is available at http://hpmmsupport.com/MPE%20Manual/32650-90309.pdf

regards,
Robert W.Mills


On 16 Oct 2013, at 05:49 AM, Paul Richards <[log in to unmask]> wrote:

> It seems that if I want the final executable to be one file then this will work:
> 
> :COB85XL SUBPROG,SUBP;INFO="$CONTROL DYNAMIC"
> :COB85XL MAINPROG,MAINP
> :LINK FROM=MAINP,SUBP; TO=UPDPGM
> 
> from the HP COBOL II/XL Programmer's Guide, and it does.
> 
> What if I want MAINPROG and SUBPROG to remain as separate files - is this possible?
> 
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2