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
What is the LINKAGE SECTION used in COBOL?
What are the cobol coding sheets?
How to remove 2 duplicate records and copy only one using job control language?
What type of SDLC u followed? Why?
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
example for sub strings ? and refernce modifications whit output pls
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
How arrays can be defined in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are 77 levels used for?
What is amode(24)?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?