× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a multi-part message in MIME format.
--
Leif

This is what I'm trying to do.

PGMA has a array (ARR-TABLE) of 50 occurrence
>From PGMA, I will call PGMB that loads some data into ARR-TABLE. For
this generally, we will call PGMB with ARR-TABLE as parameter.

Here, I don't want to pass ARR-TABLE itself as an array. I would like to
pass the pointer on this ARR-TABLE as a parameter to PGMB (means only
the address of the table). I think, these are possible in ILE COBOL.

For, the above scenario, I want a sample code.

Thanks & Regards
Sivasubrahmanian. A
Project Engineer
Wipro Technologies (Finance & Insurance)
Electronics City, Bangalore, India
Phone - 8520408/8520416 x - 4364.

-----Original Message-----
From: cobol400-l-admin@midrange.com
[mailto:cobol400-l-admin@midrange.com] On Behalf Of Leif Svalgaard
Sent: Thursday, August 22, 2002 8:21 PM
To: cobol400-l@midrange.com
Subject: Re: Call by reference

From: Sivasubrahmanian Ananthakrishnan
> I'm looking for a sample program that uses call by reference. I have a
> array in PGMA that needs to be processed in PGMB. I would like to
ignore
> calling the program with the array data itself as a parameter. Instead
> would like to use a pointer. If any of you have a sample program that
> will explain this functionality, it would be of great help. Please
help
> with a sample program that uses call by reference

AFAIK, *all* parameters in COBOL are already passed by reference
by default, so it is not quite clear what your problem is...


_______________________________________________
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing
list
To post a message email: COBOL400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/cobol400-l
or email: COBOL400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.

--
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.

***************************************************************************


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.