Answer Posted / leroy
Answer #2 is incorrect for IBM COCOL compiler.
Answer #1 is correct but incomplete. a) "VALUE" close can
not be used in occurring fields b) Occuring fields are the
ones that will redefine other fields not the other way
round.
Example: CORRECT
01 LIT-FIELD PIC X(21) VALUE 'SUNMONTUEWEDTHUFRISAT'.
01 DAYS REDEFINES LIT-FIELDS.
05 WEEK-DAY OCCURS 7 PIC X(03).
INCORRECT:-
01 DAYS.
05 WEEK-DAY OCCURS 7 PIC X(03).
05 LIT-FIELDS REDEFINES WEEK-DAY VALUE 'SUNMONTUE.........'
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
i want a program using by if, evaluate , string, unstring, perform, occurs?
how to access the file from prodution from changeman tool and to submit a file to production
What is link edit in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What are the pertinent COBOL
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How you can read the file from bottom?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Discuss about changing dataset name in proc.
How do you define a variable of comp-1 and comp-2?
how do you reference the rrds file formats from cobol programs
How are the next sentence and continue different from each other?
In which area will you utilize 88 level items in cobol?
example for sub strings ? and refernce modifications whit output pls