C supports "normal" assembler parameter lists. It's an option, PLIST(OS). Search the manuals for how it all works. As I recall you get a void** variable named _r1 that points to what you would expect R1 to point to.
I would *guess* you could make it work but I am far from an expert on SORT exits. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Frank Yaeger Sent: Tuesday, March 29, 2011 12:21 PM To: [email protected] Subject: Re: Why does SORT forbid E15+E35 in COBOL for OPTION COPY? Peter Farley on IBM Mainframe Discussion List <[email protected]> wrote on 03/29/2011 11:31:13 AM: > Related question: Can a plain C subroutine (LE-enabled, not MetalC > or SP C) be used as a DFSORT exit routine? If so, what would the > fourth exit parameter be set to? "C" like for COBOL, or "N" for none? I'm an Assembler guy - I don't use C - so I'm probably the wrong person to ask. However, I suppose it depends on which type of exit parameter list C can take advantage of (if either). The Assembler exit lists are simple ones whereas the COBOL exit lists are more complex. Both are described in the DFSORT book here: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA50/4.0?DT=2 0100630155256 You would use N in the MODS statement for a routine that uses the Assembler exit list, or C in the MODS statement for a routine that uses the COBOL exit list. Maybe somebody who actually uses C can give you a better answer. Frank Yaeger - DFSORT Development Team (IBM) - [email protected] Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

