> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of Ramya Ramaswamy
>
> Hi,
>
> I have a requirement which states like this:
>
> Given records like
>
> 1~ABC~99.99~12345
> 123~AB~9.99~567
> 34~c~1.99~345
>
> where there are 4 fields in each record, each separated by a
> '~'. The third field is the price field, which i need to sum
> up. I wont know the starting position / length of the fields.
> Is there any way that i can sum up the price, using Sort or
> DYL, without having to write a COBOL program using UNSTRING?
You could write an assembler E15 exit program using TRT....
Not familiar with DYL, but AFAIK the SORT utilities require the SUMmed
fields to be the same length, format and offset in every record.
-jc-
----------------------------------------------------------------------
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