SORT question
- From: WGeorge@xxxxxxxxxxxx (George, William , DHS-ITSD)
- Date: 30 Jan 2007 13:50:10 -0800
It's been awhile since I've had to use DFHSORT (PGM=SORT) and am
returning to a project where I'll need it.
There is an immediate situation I'd like to deal with but the saved
SORTs I have do not seem to deal with it and my looking through doco has
not yielded any help.
I'd like to take an input file and;
* Check a single 2 byte field (I can do this)
* Select the record if it is one of 10 values (I can do this)
* Write the record to one output dataset if possible (10 would
work if it is the only way)
(I can do this)
* Stop the processing after each of the 10 values has AT LEAST 2
records output
* (THIS, is the bugger I'm looking for)
The STOPAFT statement only counts input records and doesn't deal with
individual output counts. Sigh.
Any insights would be appreciated.
Note: I can write a simple REXX to do this but need to do it in SORT.
Double sigh.
Bill George
Department of Health Services
Information Technology Services Division
MEDS Application Support
1615 Capitol Ave Ste. 73.2.52
P.O. Box 942732
Sacramento, CA 94234-7320
916-552-9961
wgeorge@xxxxxxxxxx
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.
- Follow-Ups:
- Re: SORT question
- From: Howard Brazee
- Re: SORT question
- From: Frank Yaeger
- Re: SORT question
- Prev by Date: DADSM allocation for non-SMS files
- Next by Date: Re: TRSMAIN question
- Previous by thread: DADSM allocation for non-SMS files
- Next by thread: Re: SORT question
- Index(es):