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
What is the difference between PIC 9.99 and PIC9v99?
Explain the configuration section of a cobol program with examples of syntax.
What is the difference between goback, stop run and exit program in cobol?
Define cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
What are the cobol coding sheets?
What are the different rules to perform a Search?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
In COBOL programming, what is PERFORM? What is VARYING?
What do you understand by psb and acb?
how to move the records from file to array table. give with code example
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.
What is the LINKAGE SECTION used in COBOL?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Write down the divisions of cobol program?