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

Is there a way to remove the unwanted diplays in SORT?


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

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Thu May 21, 2009 11:28 am
Reply with quote

Hi,

My INPUT file is having 48 lines of unwanted displays at the beginning as well as at the end.

I have used SORT FIELDS=COPY,SKIPREC=48 to remove the displays at the beginning.

Can any one help me out in removing the 48 lines at the end?


Thanks,
Bhargav.
Back to top
View user's profile Send private message
SaiHema

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 11:58 am
Reply with quote

Hi Bhargav,

IF u know the no.of records in your input file, u can use STOPAFT option to resolve the issue.

i.e., STOPAFT = 'no.of records to be used for sorting/copying, bfore ur 48 records at the end'
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Thu May 21, 2009 12:04 pm
Reply with quote

My INPUT file is a REPORT produced by another job...

The no.of records will vary from day to day, so I can't use STOPAFT...

is there any other way..?
Back to top
View user's profile Send private message
SaiHema

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 12:19 pm
Reply with quote

Hi Bhargav,
If you know the First few bytes of the last 48 records that needs to be removed/first few bytes of actual records that needs to be copied, you can use OMIT/INCLUDE condition respectively.

Just check whether this will help.
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Thu May 21, 2009 12:43 pm
Reply with quote

Thanks for your suggestion I have tried using OMIT it worked for me...
icon_smile.gif
Back to top
View user's profile Send private message
SaiHema

New User


Joined: 21 May 2009
Posts: 8
Location: Chennai

PostPosted: Thu May 21, 2009 12:50 pm
Reply with quote

Good.. icon_biggrin.gif
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top