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

validating a numeric field using SYNCSORT


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

New User


Joined: 15 Jan 2007
Posts: 36
Location: Kerala

PostPosted: Tue Jan 16, 2007 11:03 am
Reply with quote

How can i validate a numeric field for alphanumeric values using SYNCSORT?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jan 16, 2007 3:17 pm
Reply with quote

I do not think that is possible, why would you need to?
Back to top
View user's profile Send private message
bijoybabu83

New User


Joined: 15 Jan 2007
Posts: 36
Location: Kerala

PostPosted: Tue Jan 16, 2007 5:58 pm
Reply with quote

I need to write all records in a file whose one field contains alphanumeric values.I am using jcl sort to do that.

For example if UPC is a field in the file.This field should be always numeric.If any alphanumeric values are found in this field,My sort step picks that record as a whole and writes to another file....

I'm using INCLUDE AND OUTFIL functionality in sort step.

Can you help me.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jan 16, 2007 6:23 pm
Reply with quote

I looked and I couldn't find anything other than a long byte by byte include/omit for GE '0' & LE '9'.....
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jan 16, 2007 10:21 pm
Reply with quote

bijoybabu83,

If you happen to have access to DFSORT, you can use its NUM function with INCLUDE/OMIT as described at:

www.ibm.com/servers/storage/support/software/sort/mvs/peug/

Note that Syncsort does not have this function.
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 Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top