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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts BPXBATCH SFTP to remote path having s... All Other Mainframe Topics 6
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:


Back to Top