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

filtering a comp field using a sort jcl


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

New User


Joined: 24 Jul 2006
Posts: 35
Location: india

PostPosted: Fri Apr 03, 2009 2:06 pm
Reply with quote

I have to filter out a binary field ie comp value from a file. The field is an account number.

I have to filter account number with values 15,22,200.can u please tell me how to write the include statement in sort jcl
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 Apr 03, 2009 2:27 pm
Reply with quote

INCLUDE FORMAT=BI,COND=(pos,len,EQ,1522200)
or
OMIT FORMAT=BI,COND=(pos,len,EQ,1522200)

should do, depending on what you mean by 'filter out'.

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

New User


Joined: 24 Jul 2006
Posts: 35
Location: india

PostPosted: Fri Apr 03, 2009 2:49 pm
Reply with quote

thanks a lot
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Apr 03, 2009 4:27 pm
Reply with quote

Generally, the FI would be more accurate than the BI....
FI
(fixed-point, signed). The complete number is represented by its binary equivalent with the sign indicator placed in the most significant bit position.
BI
(binary unsigned). Any bit pattern.
Back to top
View user's profile Send private message
Ashish Ranjan

New User


Joined: 12 Jan 2009
Posts: 2
Location: pune

PostPosted: Fri Apr 03, 2009 5:40 pm
Reply with quote

But as mentioned on the top of discussion field is an ACCOUNT NUMBER. Could not be negative. So I think better to use Data format as BI only.
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 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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top