What is the COMP-X used for?

2 posts / 0 new
Last post
What is the COMP-X used for?






We use Micro focus mainframe express for our development work in 
COBOL, recently I came across a copybook which had datatype of variables 
defined as COMP-X. Please see below code for reference.
05  FCD-FILE-STATUS.                               
    10  FCD-STATUS-KEY-1 PIC X.                    
    10  FCD-STATUS-KEY-2 PIC X.                    
                         PIC 99 COMP-X.            
As far as I know, I dont think regular COBOL which runs on mainframe uses 
this datatype.
I would be grateful if someone can explain what is COMP-X datatype and if
COBOL for OS/390 uses this?
"; ; ; ;
RE:What is the COMP-X used for?


Comp-x is binary datatype and the use of COMP-X is for extended filestatus byte in Microfocus COBOL 
COMP-X is a Microfocus extension not supported in standard mainframe COBOL...)
Log in or register to post comments
Sponsored Listing