I can figure the parameter list part out OK, but what I was asking was whether the LE enclave needed by a C subroutine would be made available, and how. I'm *guessing* it might work by telling SORT it is "COBOL", but without actual experimenting I don't know. The FM is quite silent about anything except assembler and COBOL as MODS-type external exit routines to a JCL-invoked sort.
Peter > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On > Behalf Of Charles Mills > Sent: Tuesday, March 29, 2011 5:53 PM > To: IBM-MAIN@bama.ua.edu > Subject: Re: Why does SORT forbid E15+E35 in COBOL for OPTION COPY? > > 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:IBM-MAIN@bama.ua.edu] On > Behalf > Of Frank Yaeger > Sent: Tuesday, March 29, 2011 12:21 PM > To: IBM-MAIN@bama.ua.edu > Subject: Re: Why does SORT forbid E15+E35 in COBOL for OPTION COPY? > > Peter Farley on IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu> 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. -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html