study the data discriptions and answer the questions given below
i)01 ORDER RECORD
05 OUT-HEADER PIC X(50)
05 ITEM-COUNT PIC 99
05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
ON ITEM-COUNT
ii)01 NAME-AND-ADDRESS
05 N-AND-A-LINE OCCURES 5
05 LINE-LENGTH PIC P9
05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
LINE-LENGTH
iii)01 SALES-LIST
05 SALESMAN-COUNT PIC 99
05 SALES PIC 9(6) OCCURS 1 TO 100
DEPENDING ON
SALESMAN-COUNT
iv)01 ORDER-RECORD
05 NO-OF-BRANDS PIC 99
05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
NO-OF-BRANDS
which of the following is true?
a.i) and iii) are valid
b.i) and iv) are valid
c.i) and iii) are not valid
d.all are valid

Answer Posted / prasanna

ORDER RECORD is not a valid declaration fo a group item. It
has to be ORDER-RECORD.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

923


What is the Purpose of POINTER Phrase in STRING command in COBOL?

711


how do you reference the variable unblock file formats from cobol programs

737


What guidelines should be followed to write a structured cobol prgm?

663


Explain what you understand by passing by value.

689






INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

408


Explain how to differentiate call by context by comparing it to other calls?

679


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704


What is the difference between structured cobol programming and object alternativelyiented cobol?

746


What is a SSRANGE and NOSSRANGE?

812


How do get the result of your program directly on your pc?

1874


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1921


Explain about different table spaces.

642


What is the compute verb? How is it used?

651


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

989