View previous topic :: View next topic
|
Author |
Message |
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
Hi,
The Requirement is to strip the first few lines (say , n) of a file using jcl.
How can this be done... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IDCAMS or your SORT product will do this for you. |
|
Back to top |
|
|
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
expat wrote: |
IDCAMS or your SORT product will do this for you. |
Thanks for your response...
Yeah, I'm sure the sort cards do this...
But couldn't figure how ...
BTW, By lines I mean rows here...
Also, How could i delete the last few lines of a file?
Thanks! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you have DFSORT installed, then all of the documentation you require is available from a "STICKY" post in that forum.
Take a look at the DFSORT Smart Tricks document for how to do this.
However, the functionality available to DFSORT depends on the release level installed. Again, this information will be available in the DFSORT forum.
If you have SYNCSORT installed then you will need to go through the product document as the functionality and/or syntax may vary from that of DFSORT. |
|
Back to top |
|
|
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
expat wrote: |
If you have DFSORT installed, then all of the documentation you require is available from a "STICKY" post in that forum.
Take a look at the DFSORT Smart Tricks document for how to do this.
However, the functionality available to DFSORT depends on the release level installed. Again, this information will be available in the DFSORT forum.
If you have SYNCSORT installed then you will need to go through the product document as the functionality and/or syntax may vary from that of DFSORT. |
Okay.. I'll check that... Thanks for your time. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
BTW, By lines I mean rows here... |
If you search for examples in the DFSORT part of the forum or this jcl part of the forum (for Syncsort) suggest you look for records (not rows).
Rows are used in databases not sequential files. Looking for rows in sort topics will not find the "hits" that will be helpful. |
|
Back to top |
|
|
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
Yes dick... Thanks for the suggestion... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - is this now working for you?
d |
|
Back to top |
|
|
fredrick andrews
New User
Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
Yes! It's working fine now... |
|
Back to top |
|
|
|