Subject: | |
From: | |
Reply To: | Robert W. Mills |
Date: | Wed, 16 Oct 2013 11:38:53 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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 *
|
|
|