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
Write the code to count the sum of n natural numbers.
Discuss about changing dataset name in proc.
What the difference is between continue and next sentence?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the usage of comp fields in cobol?
What is comp-1 and comp-2?
how do you reference the esds vsam file formats from cobol programs
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how do you reference the variable unblock file formats from cobol programs
How do we get current date from system with century in COBOL?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is the difference between next sentence and continue in cobol programing language?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Explain the configuration section of a cobol program with examples of syntax.