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

Omit the recoreds whih is having spaces at 500 to 1000


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
trumpcards
Warnings : 1

New User


Joined: 03 Jul 2006
Posts: 11

PostPosted: Tue May 11, 2010 3:31 pm
Reply with quote

Hi,
I want to omit the records which is having spaces at 500 to 1000 using sort.
your valuable suggestions are appreciated
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue May 11, 2010 4:30 pm
Reply with quote

Hi,

this might help
Code:
//STEP0100 EXEC PGM=SORT                                       
//SYSOUT   DD SYSOUT=*                                         
//SORTIN   DD DSN=input-file                                   
//SORTOUT  DD DSN=output-file                                   
//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                             
  OMIT COND=(500,251,CH,EQ,C' ',&,751,250,CH,EQ,C' ')           
/*                                                             


Gerry
Back to top
View user's profile Send private message
trumpcards
Warnings : 1

New User


Joined: 03 Jul 2006
Posts: 11

PostPosted: Tue May 11, 2010 5:10 pm
Reply with quote

Thanks Gerry,
It is working ....
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
Search our Forums:

Back to Top