Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 995
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 to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us