Hello DFSORT experts,

I'd like ask a help.
I have to do following by DFSORT

There is a data set which contains records with dsname, time, and
status as following
(dsname, time, status fields are fixed length)
The records are sorted by dsname and time.

   dsn-aaa    08:00  open
   dsn-aaa    08:10  close
   dsn-aaa    08:15  delete
   dsn-bbb    07:55  delete
   dsn-ccc    08:05  open
   dsn-ccc    08:07  close

I want to get a record by each dsname from multiple records as following.
(each dsname has max 8 records(status))

   dsn-aaa    08:00  open  08:10  close  08:15  delete
   dsn-bbb    07:55  delete
   dsn-ccc    08:05  open  08:07  close

How can I make this output list by using DFSORT?

I'm trying to do this by using DFSORT SPLICE function, but I could not
get right answer.

Your help would be highly appreciated.


Minoru Massaki  (M*M)


-- 

全先 実  -  Minoru Massaki  (M*M)
E-mail: mmass...@gmail.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to