Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
Posted: Sat Aug 20, 2011 10:10 pm Post subject: Extract data not in fixed position
Experts,
I have a list of dataset names in a file. From that list I need to extract dataset names ending with R001,R001,R002 and so on till R999. The length of the dataset names also not fixed.
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Sun Aug 21, 2011 7:27 am Post subject:
before a sort solution can be provided,
one needs to know what is the record layout of your file.
are the file names delimited by anything? Space?
what are the column positions containing the filename?
a detailed description of you input and output is necessary to provide a solution.
if all you want is a general solution and you do not seem fit to provide any detailed information,
feel free to either look in the dfsort/syncsort/(whatever your sort product is) manuals.
depending on the attributes of the record definition,
PARSE, OMIT, INCLUDE can/could be used.
Also, feel free to look thru the several thousand posts that exist in this forum for a general solution that fits your general needs. _________________ Dick Brenholtz
American living in Varel, Germany
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Sun Aug 21, 2011 4:06 pm Post subject:
keep in mind since the ds record length is only 44,
you will need to SS up to but not including the 44th column with
variations of '.Rnnnb' (where n is numeric and b is space.)
the the 40th thru 44th must be '.Rnnn' _________________ Dick Brenholtz
American living in Varel, Germany
If you want to select a series of values (rather than a value within a range) you will need to code all of the individual values. . . _________________ All the best,
We don't need IFTHEN for INREC, and we can use NUM for the numeric test. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum