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 / ram.g
what's the wrong in option (i)? ...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the difference between comp and comp-3 usage?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How do you differentiate between cobol and cobol-ii?
how to refer the data field?
What is the difference between comp and comp-3?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is the local-storage section?
Write a program to enter and display the names of students in a class using the occurs clause.
How do you reference the fixed block file formats from cobol programs
) what is the difference between AID and HANDLE AID?
Discuss about changing dataset name in proc.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What the difference is between continue and next sentence?