• Rajesh A R

F1 for Mainframe

F1 for Mainframe

Tag Archives: Relational Operators

File-Aid Relational Operators, Data Types

16 Friday Nov 2012

Posted by rajeshar in FILEAID

≈ Leave a comment

Tags

FILE AID, Relational Operators

File-Aid Relational Operators, Data Types

The relational Operator is used with Position, Length, and Data Value to set  up a conditional test that File-AID is to perform when selecting records.

The valid relational operators are:                                         

     EQ  =   – equal to

     NE  ¬=  – not equal to

     GT  >   – greater than

     LT  <   – less than

     GE  >=  – greater than or equal to

     LE  <=  – less than or equal to

     BT      – within a range of two values (endpoints inclusive)

     NB      – outside a range of two values (endpoints exclusive)

     CO      – search a field for presence of a data value

     NC      – search a field for the absence of a data value

     VA      – test a field for validity (Packed, Numeric)

     NV      – test a field for not valid (Packed, Numeric)

     NO      – bits are not ones (Mask data value only)

     MX      – bits are mixed, ones and zeros (Mask data value only)

     FM      – field mask. See the index for more information on Field Mask.

     FF      – field to field. See the index for more information.          

OPERATOR VALIDITY BY DATA TYPE

The following table shows the valid operators that may be used with each of the seven data types:

DATA TYPE                   VALID OPERATORS

T (Text – any case)         EQ,NE,GE,GT,LE,LT,CO,NC,BT,NB,FM,FF

C (Character – exact case)  EQ,NE,GE,GT,LE,LT,CO,NC,BT,NB,FM,FF

X (Hex)                     EQ,NE,GE,GT,LE,LT,CO,NC,BT,NB,FF

P (Packed)                  EQ,NE,GE,GT,LE,LT,      BT,NB,VA,NV,FM,FF

N (Numeric – zoned)         EQ,NE,GE,GT,LE,LT,      BT,NB,VA,NV,FM,FF

B (Binary)                  EQ,NE,GE,GT,LE,LT,      BT,NB,FM,FF

M (Mask byte)               EQ,NE,                              NO,MX,FF 

BT (Between) and NB (Not between) CONVENTIONS:

For relational operators BT and NB, you specify your Data Value as two values separated by a colon (:).  The values may be hex strings,character strings, or numeric tests.  For example, the following values are equivalent:

        X’F1:F3′        or

        N’1:3′          or

        1:3

Note that the BT relational operator includes the endpoints of the range you specify and the NB relational operator does not include the endpoints. 

——————————————————————————————————–

In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

——————————————————————————————————–

You may also like to look at:

Working on Mainframes – Is Change to a different technology necessary
Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
SAS – SAMPLE PROGRAM
CA DISPATCH – Useful Commands
Locate the INVALID data in a field using FILE AID
File-Aid Relational Operators, Data Types
Xpediter – Batch Setup
FILE AID – VIEW TIP
FILEAID TIPS
EDIT PDS USING FILE-AID – FAST MODE
VSAM – KEYS
Comparison of ESDS, KSDS, RRDS, VRRDS, and linear data sets
VSAM OPEN CLOSE I/O RETURN CODES
VSAM INTERVIEW QUESTIONS
VSAM TIPS

Rate this:

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • November 2020
  • July 2020
  • February 2020
  • January 2020
  • September 2019
  • August 2019
  • October 2018
  • April 2018
  • March 2018
  • December 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • May 2016
  • March 2016
  • February 2016
  • January 2016
  • May 2015
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • January 2013
  • December 2012
  • November 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • April 2011
  • March 2011
  • August 2009
  • June 2009
  • April 2009

Categories

  • Azure
  • CA7
  • CICS
  • COBOL
    • Keywords
  • DB2
  • EASYTRIEVE
  • FILEAID
  • FILEMAXX
  • IMS
  • ISPF
  • JCL
  • KNOW YOUR MAINFRAME
  • Mainframe Migration
  • MAINFRAMES
  • Others
  • REXX
  • SDSF
  • SORT
  • Training
  • TSQL
  • VSAM

Meta

  • Create account
  • Log in

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • F1 for Mainframe
    • Join 90 other subscribers
    • Already have a WordPress.com account? Log in now.
    • F1 for Mainframe
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar