I don't know much sort tricks but I have something similar saved in my local PDS, see if this helps and I am sure Bill or others or yourself can help and suggest to what you want.
This will generate the numbers based on value in 12th position.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
To get the range:
Code:
INCLUDE COND=(12,2,ZD,LE,81,2,ZD,
AND,12,2,ZD,GE,5,2,ZD)
My concern is that TS/OP shows eight-digt numbers, potentially just shy of 100m generated per pair (if the full value of the eight digits is needed). It would however readily work for overlapping ranges.
A single repeat to get sequence numbers, and generate the INCLUDE COND= (need a sequence to identify formatting for the first, subsequent and a "dummy" condition in TRAILER1 to finish with.
However, won't allow for overlapping ranges.
So, are overlapping ranges possible? Maximum value possible is?
REPEAT=n specifies the number of times each OUTFIL output record is to be repeated. The value for n starts at
2 (write record twice) and is limited to 28 digits (15 significant digits).