Logo 
Search:

Cobol Articles

Submit Article
Home » Articles » Cobol » Homework HelpRSS Feeds

PROGRAM OF CLASS CONDITION

Posted By: Vid Fischer     Category: Cobol     Views: 3838

WRITE A PROGRAM OF CLASS CONDITION.

Code for PROGRAM OF CLASS CONDITION in Cobol

       IDENTIFICATION DIVISION.
        PROGRAM-ID. PROG.

       DATA DIVISION.
        01 VAL PIC X(5).

       PROCEDURE DIVISION.

        DISPLAY "ENTER THE CHAR".
        ACCEPT VAL.
        IF VAL IS ALPHABETIC
         DISPLAY "ENTER CHAR IS ALPHABETIC"
        ELSE
         IF VAL IS NUMERIC
          DISPLAY "ENTER CHAR IS NUMERIC"
        ELSE
         DISPLAY "ENTER CHAR IS UNKNOWN"
        END-IF.

       STOP RUN.
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM OF CLASS CONDITION Or get search suggestion and latest updates.

Vid Fischer
Vid Fischer author of PROGRAM OF CLASS CONDITION is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!