Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous

 

 

 

 

 

 
 
 
 
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.                    
    10  FCD-BINARY       REDEFINES FCD-STATUS-KEY-2
                         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?

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 713
Theme by Dr. Radut.