The JZOS interface to DFSORT actually spawns a stand-alone C++/assembler
binary (jdfsort).
jdfsort uses the DFSORT call-level interface, which allows you to pass a
parameter list which includes call-back functions (E15 and E35 exits).
The call-backs use standard OS calling convention, so these are in
assembler in jdfsort, but could easily be metal-C.

FWIW: jdfsort isn't documented as an interface - only the JZOS Java classes
wrapper classes.

If you were going to do something in C, I would suggest playing around and
getting familiar with how the com.ibm.jzos.Dfsort class works.   It
wouldn't be too difficult to do something similar in C.   It would be
really nice if the I/O exits could be regular C callbacks (anonymous pipes
are implemented poorly in z/OS).   That would take some fancy LE
programming to make it work efficiently.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com


On Fri, Jun 6, 2014 at 7:43 PM, John McKown <[email protected]>
wrote:

> An example in another language  is always helpful. And I know & trust the
> peoples who first designed and implemented JZOS.
> On Jun 6, 2014 6:23 PM, "Norbert Friemel" <[email protected]> wrote:
>
> > On Fri, 6 Jun 2014 13:06:00 -0500, John McKown wrote:
> >
> >
> > >One of my hopes is that, if I do write something, it would be as
> > >conceptually as easy for a C programmer to use as the SORT verb is for
> the
> > >COBOL programmer. Perhaps with an interface similar to what qsort()
> uses.
> > I
> > >would guess most C programmers who need to sort would be familiar with
> > >qsort(). I may well not be qualified to actually accomplish this. But it
> > >would be a glorious failure! <grin/> Even more ambitious would be a
> DFSORT
> > >class for C++.
> > >
> >
> > I don't know if this helps but there are Java classes in the JZOS
> toolkit:
> >
> >
> http://www.ibm.com/developerworks/java/zos/javadoc/jzos/com/ibm/jzos/sample/dfsort/package-summary.html
> >
> >
> http://www.ibm.com/developerworks/java/zos/javadoc/jzos/jzos240/index.html?com/ibm/jzos/sample/nonvsam/file/package-summary.html
> >
> > Norbert Friemel
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to