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

Syncsort - omit all records with low-values


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

Active User


Joined: 18 Oct 2008
Posts: 380
Location: India

PostPosted: Fri Jul 12, 2013 1:41 pm
Reply with quote

Bill,

Quote:

You have 256 possibilities, from X'00' to X'FF'. Identify the hex values you want excluded.


The aim is to figure out the data that appears like "....." when we open a dataset in browse mode (view mode was not possible because of its size). I am trying to figure out what are all the hex values that appear as "...." in a dataset so that I can write exclude list.

Thanks.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 12, 2013 1:52 pm
Reply with quote

ramsri wrote:
Bill,

Quote:

You have 256 possibilities, from X'00' to X'FF'. Identify the hex values you want excluded.


The aim is to figure out the data that appears like "....." when we open a dataset in browse mode (view mode was not possible because of its size). I am trying to figure out what are all the hex values that appear as "...." in a dataset so that I can write exclude list.

Thanks.


That's pretty much OMITting all non-printable characters. It might be easier to INCLUDe only the printable characters...

Garry.
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: Fri Jul 12, 2013 2:07 pm
Reply with quote

Is the data all "text"?

Do you have a record layout(s)?

Are the "non-display" bytes in fixed positions?

It will probably still be easier to look for the non-display, because you want to ignore records if any non-display character, rather than include records where the bytes you are interested in are all displayable.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Jul 12, 2013 3:44 pm
Reply with quote

Even if it is an "ANY", still we need to list out all of those non-display character if we are to ignore records with any one of them, don't we?. Besides, do we have such a list here? icon_confused.gif
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: Fri Jul 12, 2013 6:38 pm
Reply with quote

Hello,

It may help if you post a few of the actual records in hex.

Where does this input originate?
Back to top
View user's profile Send private message
subdalal

New User


Joined: 27 Sep 2010
Posts: 21
Location: Boudh

PostPosted: Fri Jul 12, 2013 9:06 pm
Reply with quote

Hi,
I think this problem can be solved with Sort. The line of codes can also be reduced.

The Sort card would be for Low-Values:

SORT FIELDS=COPY
OMIT COND=(STARTING_POSITION,LENGTH,SS,EQ,X'00')

Similarly for High-Values:

SORT FIELDS=COPY
OMIT COND=(STARTING_POSITION,LENGTH,SS,EQ,X'FF').

And this can be done for any values by providing the respective Hexa-Decimal value.
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top