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

Remove JUNK records


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

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Mon Sep 16, 2013 3:37 pm
Reply with quote

I have a file where first 10 bites are defined as 9(10). But there are chances that, I might get junk values in the field. Before feeding this file to my COBOL program, I would like to remove such records and feed it. How can I remove the junk values from the file? Is it possible in SORT?

Thanks,
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 16, 2013 3:57 pm
Reply with quote

Locate the section on "Numeric Tests" in the manual.

This can be used in INCLUDE/OMIT COND=, INCLUDE/OMIT= and IFTHEN=.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 16, 2013 6:47 pm
Reply with quote

Hello,

Might they be something other than "junk"? Suggest you determine how the data originated and fix/change that process rather than some kludge to pass the data to "fix" it.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Wed Sep 18, 2013 12:25 pm
Reply with quote

Thanks Bill, got it.

Hi Dick, Yeah that's true. It's something our upstream system needs to make the change. I was checking the possibilities...
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top