can we use the two 01 level in file discription ?
Answers were Sorted based on User's Feedback
Answer / vamsi
In a general scenario, we cannot use two 01 level numbers in
the same structure.
We can use this when we want to redefines entire structure only.
Eg:
01 ws-input.
10 name pic x(40).
10 desig pic x(40).
01 ws-input-re redefines ws-input
10 name pic x(30).
10 department pic x(10).
10 designation pic x(20).
10 salary pic s9(13)v99.
10 filler pic x(13).
this way we can use.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / sivakumar sekharannair
Two 01 level can be used for the same file, if the file is
a variable length file. Each 01 level identifies the
different layouts.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / janaki
Yes we can.. This means that teh second layout redefines
the first layout.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ramaswaminaidu g
Both vamsi and sivakumar are correct.we can use while
redefining o1 level and while using variable length records.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why occurs can not be used in 01 level ?
what is the difference between Plan & package?
How many bytes do a s9 (7) comp-3 field occupy?
Suppose i want to declare a binary comp fild of 7 byte .how to write?
How is sign stored in a COMP field ?
what is Reentrancy and Quasi-reentrancy?
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
What COBOL construct is the COBOL II EVALUATE meant to replace?
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are subroutines ? and how do we pass data to the sub routines?
What is the difference between PIC 9.99 and 9v99?