Also for the record, here is a collection of rexx algorithms, including a few different versions of sort. http://zabrodskyvlada.byethost10.com/aat/index.html
modified to use profile: wc3270\Hercules.wc3270
Fix URL for MVS/380 v1.2
Added dump support, per http://tech.groups.yahoo.com/group/hercules-os380/message/6000
correct the creation of the downloads directory
Added additional download url for MVS/380 v1.1
Remove extra line at bottom.
use pushd instead of cd at end of script.