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
Name some of the examples of COBOl 11?
What is the difference between external and global variables in COBOL?
What do you understand by psb and acb?
How to print 10 to 1 if the input have only 10 digit number?
Write a program that uses move corresponding.
What are the rules of the move verb?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
In COBOL programming, what is PERFORM? What is VARYING?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Why did you choose to work with ibm mainframe cobol programming?
Write a program to enter and display the names of students in a class using the occurs clause.
what is amode(24), amode(31), rmode(24) and rmode(any)?
How can you get the ksds file records into your cobol program?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between perform … with test after and perform … with test before?