home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!ah739
- From: ah739@cleveland.Freenet.Edu (Leslie J. Somos)
- Newsgroups: alt.cobol
- Subject: Re: Question about parameters passed to a subprogram
- Date: 19 Nov 1992 18:58:08 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Lines: 27
- Message-ID: <1ego40INNmba@usenet.INS.CWRU.Edu>
- References: <1992Nov19.155223.3385@cc.umontreal.ca>
- Reply-To: ah739@cleveland.Freenet.Edu (Leslie J. Somos)
- NNTP-Posting-Host: slc4.ins.cwru.edu
-
-
- In a previous article, lacs@ERE.UMontreal.CA (Lacombe Serge) says:
-
- >Hi.
- >
- > Is it possible to know the characteristics (type, length...)
- >of a parameter passed to a cobol subprogram. I am working with
- >Micro-Focus Cobol rev 3.0 and i have a case where the length of a
- >parameter may vary from time to time.
- >
- >Thanks.
- >
- >Serge Lacombe,
- >Universite de Montreal,
- >
- >E-mail: lacs@eole.ere.umontreal.ca
- >
-
- I would suggest you pass the characteristics seperately ( ... USING
- TYPE, LENGTH, PARAMETER )
-
- and then have multiple REDEFINES on the PARAMETER,
-
- and reference the appropriate one depending on the contents of TYPE and LENGTH.
-
- This would be completely portable to any COBOL.
- (Absolute statements are always wrong. :)
-