Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous
This is possible in COBOL

This is possible in COBOL using DEPENDING ON  clause.

 

   01  PATIENT-TREATMENTS.
       05  PATIENT-NAME                PIC X(30).
       05  NUMBER-OF-TREATMENTS        PIC 99 COMP-3.
       05  TREATMENT-HISTORY OCCURS 0 TO 50 TIMES
              DEPENDING ON NUMBER-OF-TREATMENTS.
           10  TREATMENT-DATE           PIC 9(8). 
           10  TREATING-PHYSICIAN       PIC X(30).

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 714
Theme by Dr. Radut.