• Subject: Re: ILE/Cobol 400 parameters.
  • From: "telsci" <telsci@xxxxxxxxxxxx>
  • Date: Thu, 12 Jun 1997 21:22:30 -0400

I don't know if ILE/Cobol 400 alows command line parameters, but regular
Cobol/400 will take command line parameters defined in a LINKAGE SECTION
and with the statement PROCEDURE DIVISION USING...

I don't know is it's call by pointer or call by value.  I presume you could
pass the value of a pointer.  I know that it's a bi-directional transfer of
data, so I suspect it's passing pointers.

I don't know about the ability to use a dynamic number of parameters, but
you could use one long parameter.  The first few bytes of the parameter
could tell COBOL how many parameters are encoded in the long parameter.  CL
programs and user spaces do this sort of thing a lot.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  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-2025 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.