Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
filtering a comp field using a sort jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: filtering a comp field using a sort jcl
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

Active Member


Joined: 08 May 2006
Posts: 998
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Apr 03, 2009 2:27 pm    Post subject:
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    Post subject: Reply to: filtering a comp field using a sort jcl
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: 2150
Location: At my coffee table

PostPosted: Fri Apr 03, 2009 4:27 pm    Post subject:
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    Post subject: Reply to: filtering a comp field using a sort jcl
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us