• Subject: Re: COBOL ILE
  • From: Jim Essinger <esinger@xxxxxxxx>
  • Date: Fri, 29 Jun 2001 14:29:08 -0700


There are now two different CALL statements.  You either 'CALL PROGRAM' or 
'CALL PROCEDURE' .  The default is 'CALL PROGRAM' but you can change that 
in the environment LINKAGE-TYPE command.   The compiler needs to be able to 
link the programs correctly, and telling the compiler if it is a MODULE 
(PROCEDURE) or an executable program (PROGRAM) makes thing work 
correctly.  You are on the right path keep going!

Jim Essinger
Senior Programmer/Analyst
Student Loan Fund of Idaho

At 01:54 PM 6/29/2001 +0200, you wrote:

>Hello, somebody out there.
>I have just started to experiment a little with ILE COBOL for AS/400.
>I have two old OPM programs, A and B.  A is calling B.  B is opening files 
>and does its job.  Because B is called very often from A, I want to 
>convert the two programs into ILE modules and bind them together into one 
>program to speed up the process.  Am I thinking right so far??
>I have created two ILE-moduls from the old OPM-source, MA and MB.  I have 
>used the command CRTPGM to create a program PA containig these two 
>moduls.  I am able to start and debug program PA.  BUT when I come to 
>where I call module(program) MB from MA, i get the message 'Cannot resolve 
>to objekt MA....'.
>I know that MB is not an executable objekt, but how do I then call it from 
>wthin module MA??? There must be some very basic things I have 
>misunderstood, I call MB by saying: ' CALL "MB" USING WS-PARAM'

| This is the COBOL/400 Mailing List!
| To submit a new message, send your mail to COBOL400-L@midrange.com.
| To subscribe to this list send email to COBOL400-L-SUB@midrange.com.
| To unsubscribe from this list send email to COBOL400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.