View previous topic :: View next topic
|
Author |
Message |
siva102
New User
Joined: 28 Nov 2007 Posts: 63 Location: Chennai
|
|
|
|
Hi,
I need to copy the First 10 lines of a file which contains 100 records.
Can anyone please suggest hw to achieve this ? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
Can anyone please suggest hw to achieve this ?
|
you can do it using sort utility.... |
|
Back to top |
|
|
Niki
Active User
Joined: 20 Sep 2008 Posts: 106 Location: Bangalore
|
|
|
|
Hi,
Can i have some sample sort card which can do the task. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Niki wrote: |
Hi,
Can i have some sample sort card which can do the task. |
Search the forum, discussed quite a few times.
Also try to read the manual - clue - STOPAFT |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
You can use REPRO COMMAND of IDCAMS with COUNT option. |
|
Back to top |
|
|
siva102
New User
Joined: 28 Nov 2007 Posts: 63 Location: Chennai
|
|
|
|
Hi Expat,
Thanks for the Clue.
It worked.
Code: |
//SYSIN DD *
SORT FIELDS=COPY,
STOPAFT=5
/*
|
|
|
Back to top |
|
|
|