Tim Hare wrote on 06/04/2008 01:59:39 PM: > I know the offset and format of the count, and I certainly can > compare it to a > literal. The problem is not knowing the maximum value the count could have in > any group of records (and each record can have a different value for the > count). I could for example, code the IFTHEN statement to handle 9 > segments, but have a record show up with 10. I could, I suppose, make one > pass through the file to determine the maximum number of segments, then > create control statements to process them. I guess what I was looking for > would be more of an iterative loop processing of the record segments.
Tim, There's no concept of an iterative loop. Yes, you could determine the maximum count dynamically and use it to create the control statements dynamically with DFSORT. OUTFIL REPEAT=n and SEQNUM with INCR=n might come in handy for that. Alternatively, if you could come up with a reasonable estimate of the max count you could ever get, you could add a fudge factor to it and code up that number of IFTHEN clauses. Frank Yaeger - DFSORT Development Team (IBM) - [EMAIL PROTECTED] Specialties: PARSE, JFY, SQZ, ICETOOL, IFTHEN, OVERLAY, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort/ ---------------------------------------------------------------------- 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

