can we use the two 01 level in file discription ?

Answers were Sorted based on User's Feedback



can we use the two 01 level in file discription ?..

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

can we use the two 01 level in file discription ?..

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

can we use the two 01 level in file discription ?..

Answer / kavya

yes.

Is This Answer Correct ?    2 Yes 1 No

can we use the two 01 level in file discription ?..

Answer / suresh

hI VAmsi we cant redifine in 01 level in file section.

Is This Answer Correct ?    2 Yes 1 No

can we use the two 01 level in file discription ?..

Answer / janaki

Yes we can.. This means that teh second layout redefines
the first layout.

Is This Answer Correct ?    1 Yes 1 No

can we use the two 01 level in file discription ?..

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

Post New Answer

More COBOL Interview Questions

what is the use of keep and pass in disp

1 Answers  


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


how to transfer the file from pc to mainframe??

5 Answers   TCS,


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?

2 Answers  






How you can characterize tables in cobol?

0 Answers  


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.

2 Answers   UST,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


How can you add a particular field in copybook?

2 Answers   L&T,


88 class is used for

5 Answers   CTS, EDS,


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


What is the purpose of Identification Division?

1 Answers  


Categories