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:
Paul Richards <[log in to unmask]>
Reply To:
Paul Richards <[log in to unmask]>
Date:
Tue, 15 Oct 2013 22:14:07 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
I'm getting to grips with COBOL on the HP3000 (I'm used to Micro Focus on Windows).

A simple MAIN program calls a SUBPROGRAM and is designed to return. I'm getting the following messages:

:mainprgx
UNRESOLVED EXTERNALS: subprog  (LDRERR 512)
Failed to locate the exported code symbol(s) for the imported code symbol(s)
listed above. (LDRERR 522)
Native mode loader message 522
Unable to load program to be run. (CIERR 625)

The programs are: mainprog - source, mainprgo - object, mainprgx - executable and subprog - source, subprogo - object, subprogx - executable

In MAIN I'm CALLing "subprog":

identification division.
program-id. mainprog.
procedure division.
 main-loop.
   display "In MAIN program now ...."
   call "subprog"
   display "Back in MAIN program ..."
   stop run.

In SUB I have the following:

identification division.
program-id. subprog.
procedure division.
 main-loop.
   display "In SUB program now ...."
   exit program. 

All pretty basic stuff so I must be missing some simple HP/MPE requirement.

Ideas welcome :-)

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

ATOM RSS1 RSS2