There's a thread active in TSO-REXX in which the OP wished
to extract the last record from a data set.  Of course, this
spawns a school of increasingly byzantine suggestions:

    Read into a stem and use the STEM.0th element

    Edit Macro

    Sort into reverse order and take the first.

    Count the legs and divde by four

(I suggested:

    cp "//'DATA.SET.NAME(MEMBER)'" /dev/fd/1 | tail -1

... )

But usually to such questions, Frank chimes in saying
it's a natural for DFSORT.  Is it?

-- gil

----------------------------------------------------------------------
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

Reply via email to