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

Sort to liminate records having non-numeric data


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

New User


Joined: 30 Sep 2006
Posts: 60

PostPosted: Tue Jan 20, 2009 1:00 am
Reply with quote

Hi,

I have a flat file FB - 80 bytes - i need to eliminate any recorsd which have any character in the first 20 characters as non-numeric. (Basically only those records which have all the first 20 bytes as numeric should be written to the output file.)

Is there any direct numeric check available in syncsort?

Thanks,
Aneesh.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Jan 20, 2009 3:41 am
Reply with quote

Hello Aneesh,

This code should produce the desired results:
Code:
//SYSIN DD *                 
   SORT FIELDS=COPY         
   OMIT COND=(1,20,ZD,NE,NUM)


Regards,
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Jan 20, 2009 3:42 am
Reply with quote

... Likewise you could also code
Code:
//SYSIN DD *                 
   SORT FIELDS=COPY         
   INCLUDE COND=(1,20,ZD,EQ,NUM)
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Store the data for fixed length COBOL Programming 1
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 Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top