can we use the two 01 level in file discription ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

904


What is the difference between Call and a Link?

889


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1410


what happens if parmparameter passes zero bytes to the program

1877


how to move the records from file to array table. give with code example

2426


Can we change the password using ALTER? anyone tried and changed?

1744


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2994


what is search and searchall?what is the diffrence between them?give an best example?

6174


What kind of error is trapped by on size error option?

953


) How do u handle errors in BMS macro?

1618


What is inspect in cobol ?

1005


Give some examples of command terminators?

948


HOw can I get the negative sign while deduct high value from low value

2005


How do u write test cases?

1818


What type of SDLC u followed? Why?

1722