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 |
what is the use of keep and pass in disp
Write the syntax of a two dimensional array?
how to transfer the file from pc to mainframe??
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,
What are the functions like c or c++ in cobol?
How you can characterize tables in cobol?
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
Can we use goto statement in inline_perform ?
How can you add a particular field in copybook?
88 class is used for
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the purpose of Identification Division?