<quote> I have a need to check 50 datasets (50 gens of a GDG) and extract records that match my criteria. I also would like to know which dataset in the concatenation the record was extracted from by adding an indicator to the output record. Is this possible via Syncsort or ICEMAN? <unquote>
If you have SAS that's pretty easy. Somewhat like data _null_ ; length gdgdsn $44 ; infile gdgddn filename=gdgdsn ; input ; if index(_infile_,'your_search_string_here') ; file outddn ; put gdgdsn $44. +1 _infile_ ; run ; Infile option FILENAME= identifies the respective catenands of your gdg concatentation. The IF statement in this simple form is referred to as 'subsetting if' ie. it works like a filter. Kind regards Robert -- Robert Bardos Ansys AG, Switzerland ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN