Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Categories of COBOL data

This is a discussion on Categories of COBOL data within the COBOL forums, part of the Programming Talk category; hi friends which type of Categories In COBOL data ? please give detailed information....

  1. #1
    Raman is offline Junior Member Array
    Join Date
    Feb 2006
    Answers
    15

    Categories of COBOL data

    hi friends

    which type of Categories In COBOL data ?
    please give detailed information.


  2. #2
    meganapriya is offline Junior Member Array
    Join Date
    Sep 2006
    Answers
    4
    In COBOL, there are really only three data types -

    numeric
    alphanumeric (text/string)
    alphabetic

    There is little difference between these data types For instance, it is possible to assign a non-numeric value to a data item that is declared as numeric.

    But there is problem with this kind of approach because Cobol programs crashes unexpectedly non-numeric data, it is up to you to make sure this will not happen.
    like make sure non-numeric data is not assigned to numeric items meant for calculations. The compiler ensures that a variable of a particular types can only be assigned appropriate values.


Latest Article

Network Security Risk Assessment and Measurement

Read More...