View previous topic :: View next topic
|
Author |
Message |
SanthamoorthyRajamani
New User
Joined: 06 Nov 2008 Posts: 10 Location: Chennai
|
|
|
|
How to copy or extract, two set of records from a flat-file.
For example I have the file with 1000 records.
From that I want to extract 100 to 100 and 500 to 600.
Can we use SKIPREC and STOPAFT in SORT card? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
SanthamoorthyRajamani
New User
Joined: 06 Nov 2008 Posts: 10 Location: Chennai
|
|
|
|
The link you gave is to extract one set of record to output file,Actually I want two set of recods in single job step. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
I have 50 records out of which I want to move from 3rd record to 10 th record and 25th record to 40th record into an output file. |
This is the requirement which is answered in the other post. How did it occur to you that this is a single set? From whatever u have posted so far, there's no difference between the two topics other than the record numbers. If you're trying something different, you need to better explain it clearly if possible with examples. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
the link you gave is to extract one set of record to output file,Actually I want two set of recods in single job step |
.
better see an opthalmologist
Quote: |
I have 50 records out of which I want to move from 3rd record to 10 th record and 25th record to 40th record into an output file |
apart the numbers 3 to 10 and 25 to 40
the issue looks, from a logic point of view, exactly the same to me, but I might be wrong
and substituting an equality for a range comparison does not look very difficult ,
if You want to do it
but, alas, the desire of being spoon fed, makes people describe things more complicated than they are really
[/quote] |
|
Back to top |
|
|
|