GROUP AND ELEMENTARY ITEMS

 

01  car-buying-rec.

      05  car-description.

            10  car-type                                         pic x(10).

            10  car-model  pic x(12).

            10  car-color                                        pic x(15).

      05  car-buying.

            10  car-cost-can-afford                        pic 9(5)V99.

            10  car-comparisons.

                  15  car-sticker-cost.

                        20  car-sticker-original              pic 99999V99.

                        20  car-sticker-additionals        pic 99999V99.

                  15  car-consumer-report-cost         pic 9(5)V99.

            10  car-incentives.

                  15  car-rebate-amount                    pic 9(4)V99.

                  15  car-loan-percent                       pic 99V99.

           

     

Questions???

¨      Do all of the same level #s under the same group item have to all be either group or elementary items?

¨      Does there have to be a period after every declaration?

¨      What if car-cost-can-afford is a level 07?

¨      What is the type and length of car-comparisons?

¨      Can all of the level # 10s under car-description be changed to 20?

¨      Can I insert an 07 group item between car-description and car-type? (i.e. would like to buy more than one type of car)

¨      Can I insert an 07 elementary item between car-description and car-type?

¨      What are all the valid level number that the two 20 declarations can be changed to and still be correct?

¨      List all the elementary items.

¨      Give an example of the input record.