Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Remove / Strip lines in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Remove / Strip lines in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 08, 2010 4:48 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 08, 2010 5:21 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Nov 08, 2010 8:39 pm    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Thu Nov 11, 2010 10:07 pm    Post subject: Reply to: Remove / Strip lines in JCL
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us