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 |
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad
how to access the file from prodution from changeman tool and to submit a file to production
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
what are the control characters used in reports
What will happen if we generate GDG (+2) version without generating (+1) version?
whats the disadvantage of search all over search?
What are VS COBOL 11 special features?
What is difference between comp & comp-4?
In EBCDIC, how would the number 1234 be stored?
Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand
What is perform what is varying?
subscript and index r not coded in u r application program what will happen?