Can you REWRITE a record in an ESDS file? Can you DELETE a
record from it?

Answer Posted / piyush mani

original record

01 piyush gurgaon

rewrited record

01 piyush delhi

wrt fd like this

fd file1
01 frec.
02 id pic 9(2) value 01.
02 name pic x(10) value piyush.
02 place pic x(10) value delhi.
02 filler pic x(68).

now open file and give rewrite option the record wil b updated


but we can't delete a esds record as it is stored in disc...

Thanks

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

414


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1103


What are the different rules to perform a Search?

610


What are different data types in cobol?

676


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1915






How do you differentiate between cobol and cobol-ii?

643


What are the different open modes available in cobol?

711


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3706


example for sub strings ? and refernce modifications whit output pls

1832


What are the different rules of SORT operation?

689


What is amode(31)

712


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6781


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

724


What is the difference between structured cobol programming and object alternativelyiented cobol?

745


What is the difference between comp and comp-3 usage?

669