Sometimes I have a need to do a selective copy of a dataset where the selection is both record sequence and record position/part dependent. And by that I mean the record part/position is varying depending on which record it's about. An example (yes, it looks silly):
I want to copy position 31 to 40 of all records but from record 8 and 9 I want to copy also (concatenate) position 71 to 80 and from record 6 to 8 I also (concatenate in "front") want to copy position 1 to 3. The point of this example is to illustrate the needs of a more general solution. I can see the use of the SUBSET (ICETOOL) for record selection but how do you user DFSORT/ICETOOL to solve the combining record and varying position needs ? I now use a homegrown program for this but it's lacking efficiency to say the least and I'm looking at DFSORTs efficiency and speed. I have been looking at OUTFIL/OUTREC etc. but I can't see a straight forward and general solution/"template". I'm hoping for someone who have done this before to supply an example. Best Regards, Thomas Berg ___________________________________________________________________ Thomas Berg Specialist zOS/RQM/IT Delivery Swedbank AB (Publ) ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN