No SAS
-----Original Message----- From: IBM Mainframe Discussion List on behalf of Robert Bardos2 Sent: Fri 12/21/2012 3:56 AM To: [email protected] Subject: Re: SYNCSORT or ICEMAN <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 [email protected] with the message: INFO IBM-MAIN ______________________________________________________________________ CONFIDENTIALITY NOTICE: This email from the State of California is for the sole use of the intended recipient and may contain confidential and privileged information. Any unauthorized review or use, including disclosure or distribution, is prohibited. If you are not the intended recipient, please contact the sender and destroy all copies of this email. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
