IBM Mainframe Discussion List <[email protected]> wrote on 07/28/2008 11:30:56 AM: > ... > The problem I am having is attempting to perform an OVERLAY in varying > positions of the record for static and varying lengths. For > instance, multiple > long records within a fixed dataset may have a sequence of consecutive > 1's, '11111111', but they may appear anywhere from position 1 until > the end of > the record. So I would like to perform an overlay of the 1's with spaces > whenever there are 8 consecutive 1's, but not perform it if there are only 6 > consecutive 1's. > > I have investigated using ALTSEQ with TRAN and it doesn't appear to allow for > multiple consecutive characters for the translation. Basically, I > could change > all 1's to spaces, but that isn't what I want. I also tried using the PARSE > function with STARTAT to position me at the beginning of C'11111111' in > conjunction with an OVERLAY in hopes that it would overlay at that > position in > the record. I know, wishful thinking because SORT normally doesn't function > like that.
I'm not sure I understand what you're trying to do. An example of your input records and what you expect for output for various cases would help. However, if you're looking for something that will find and replace multiple consecutive characters like TRAN=ALTSEQ does for one character, DFSORT now has that capability. Find and replace is one of the new features in z/OS DFSORT V1R5 PTF UK90013 (July, 2008) which is described in detail at: www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/ If you install that PTF, you'll be able to use FINDREP to do various types of find and replace operations. Frank Yaeger - DFSORT Development Team (IBM) - [EMAIL PROTECTED] Specialties: FINDREP, WHEN=GROUP, DATASORT, ICETOOL, 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

