IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Remove / Strip lines in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Mon Nov 08, 2010 4:46 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 08, 2010 4:48 pm
Reply with quote

IDCAMS or your SORT product will do this for you.
Back to top
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Mon Nov 08, 2010 4:52 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 08, 2010 5:21 pm
Reply with quote

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
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Mon Nov 08, 2010 6:01 pm
Reply with quote

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. icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 08, 2010 8:39 pm
Reply with quote

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
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Thu Nov 11, 2010 7:24 pm
Reply with quote

Yes dick... Thanks for the suggestion...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 11, 2010 10:07 pm
Reply with quote

You're welcome - is this now working for you?

d
Back to top
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Thu Nov 11, 2010 11:49 pm
Reply with quote

Yes! It's working fine now...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top