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 Alternate Index ? How is it different from regular index ?

2 Answers  


how can we find total no of records in a file ....is there any utility......?

3 Answers   IBM,


) How do you access the migrate the data from production region to development region

1 Answers   IBM,


consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

3 Answers   TCS,


what is the difference between start and startbr?

2 Answers  






The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND

10 Answers   Huawei, IBM, TCS,


what is subscript in cobol?give realtime example?

2 Answers   Wipro,


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


what is the difference between PA & PF keys?

1 Answers   IBM,


HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?

2 Answers  


where do we use dyanamic call ? and where do we use static call pls give any example pls ?

3 Answers   Patni,


How to increase the logical record length of existing PS file?

7 Answers  


Categories