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
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.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
how do you reference the variable unblock file formats from cobol programs
What guidelines should be followed to write a structured cobol prgm?
Explain what you understand by passing by value.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Explain how to differentiate call by context by comparing it to other calls?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is a SSRANGE and NOSSRANGE?
How do get the result of your program directly on your pc?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Explain about different table spaces.
What is the compute verb? How is it used?
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