Frank Yaeger and Brian Westerman wrote: >Elardaus
Grrrrrrrr!!!!! A new variation of my name! ;-D My name is Elardus! Please SORT it out! ;-D Nevermind, I've forgiven you. ;-D Frank Yaeger wrote: >Well, I'd like to think I'm pretty good with DFSORT and DFSORT's ICETOOL. :-) Wow! I learned something new today to sort out my braincells! ;-D >By saving into temporary fields, I'd guess Elardaus was referring to the >"trick" of inserting fields temporarily at the end of a record. For example, in the first IFTHEN clause, you could multiply two fields and put the result at the end of the record (after the existing fields, e.g. at positions 81-88 if the LRECL is 80). Indeed! I was referring to that 'trick' where you process such inputs in multiple passes of input data. That was, if I recall correctly, in a page from 'Professor Sort' or in some DFSORT additional PDF docs written by you! I wish I have time to look again on those useful pages and PDF books... >However, perhaps if I understood better what you were trying to do, I could come up with something. If you want me to try, please give me a better example of your input records and what you expect for output. Explain the rules for getting from input to output. Give the RECFM and LRECL of the input file. Brian: It could be useful if you could specify the occurence of each fields, how many such fields are there and the max quantity of each 'repeat fields' [1]. Also, you said there are 10 to 20 occurences of the field, but your examples show only 1 character depicting a number from 1-9. How do you specify occurences of 10 and larger? Another question: if the data is containing a number, how are you going to distinguise from the number of fields? >From your example: 2abcdef1ab3abc, I substitute 1ab with 155, so it is 2abcdef1553abc - the field2o contains '55'. Now, how are you going to distinguise the 55 from 1 and from 3? Or is it that 1 really 1? Is it 15? Perhaps 155? Hmmm, messy, verrrrry mezzy, ouch.... >It would be best if we work on this offline. I would really like to learn of the outcome. Please! But, perhaps, It could be easier to write a REXX program to parse each line. or perl, COBOL, Assembler? :-) Groete / Greetings Elardus "Elardaus" Engelbrecht ;-D [1] - RACF has many such 'repeat fields', for example connect group. Perhaps you could arrange that each field is PREFIXed with something, for example your line: 2abcdef1ab3abc could be rewritten like this: $$2abcdef$$1ab$$3abc field1o is $$2abcdef field2o is $$1ab, etc. Parsing such inputs could be easier to process in 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

