Is Bit Comparison in CA File Master Plus possible?

Document ID : KB000011636
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

We are at File Master Plus 9.1 on z/OS 2.1.  We would like to run a job which does a copy and includes records based on a bit comparison.  We cannot find a practical way to accomplish this.  In our case, at offset 40 in a record we want to copy the record if the bit is a 1 (xxxxxxx1).  Is there anyway to do this in File Master Plus?  I could think of no way to do this short of comparing the 128 possibilities of a 1 in the last position.  We accomplished our goal by using a sort copy.

 

Question:

Is Bit Comparison in CA File Master Plus possible?

Answer:

The product owner reviewed this case with his development team, and nobody was able to identify an easy way to support bit testing for the x’01’ bit.  They agree with you that this is the hardest one to test because of the 128 possible values that the byte could have that meets the condition. 

Additional Information:

A sort was used to do this.  These are the control statements.

SORT FIELDS=COPY 

OPTION VLSHRT 

INCLUDE COND=(6,1,BI,EQ,X'50',AND,44,1,BI,ALL,B'00000001') 

END