How you can delete a record from a ps file in cobol?



How you can delete a record from a ps file in cobol?..

Answer / shib

No we can not...we can skip a record logically and write the file.

https://www.ibm.com/docs/en/cobol-aix/5.1?topic=mode-file-organization-access

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  


what will be the output when a)pic 9(6)value 000178 is moved to pic ***,***. b)pic 9(5) value 57397 is moved to pic $$,$$9.

5 Answers  


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


How do you set a return code to the JCL from a COBOL program?

4 Answers  






If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


COMP?

2 Answers  


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

0 Answers  


What is difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


How to read a 100 record from a file through cobol?

2 Answers  


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,


Categories