home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / cobol / 556 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.2 KB

  1. Path: sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!ah739
  2. From: ah739@cleveland.Freenet.Edu (Leslie J. Somos)
  3. Newsgroups: alt.cobol
  4. Subject: Re: Question about parameters passed to a subprogram
  5. Date: 19 Nov 1992 18:58:08 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 27
  8. Message-ID: <1ego40INNmba@usenet.INS.CWRU.Edu>
  9. References: <1992Nov19.155223.3385@cc.umontreal.ca>
  10. Reply-To: ah739@cleveland.Freenet.Edu (Leslie J. Somos)
  11. NNTP-Posting-Host: slc4.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, lacs@ERE.UMontreal.CA (Lacombe Serge) says:
  15.  
  16. >Hi.
  17. >
  18. >    Is it possible to know the characteristics (type, length...)
  19. >of a parameter passed to a cobol subprogram. I am working with
  20. >Micro-Focus Cobol rev 3.0 and i have a case where the length of a
  21. >parameter may vary from time to time.
  22. >
  23. >Thanks.
  24. >
  25. >Serge Lacombe,
  26. >Universite de Montreal,
  27. >
  28. >E-mail: lacs@eole.ere.umontreal.ca
  29. >
  30.  
  31. I would suggest you pass the characteristics seperately ( ... USING
  32. TYPE, LENGTH, PARAMETER )
  33.  
  34. and then have multiple REDEFINES on the PARAMETER, 
  35.  
  36. and reference the appropriate one depending on the contents of TYPE and LENGTH.
  37.  
  38. This would be completely portable to any COBOL.   
  39.    (Absolute statements are always wrong.  :)
  40.