How to delete the records of a dataset through cobol
programme?We should not use jcl utilitities like IDCAMS.
Answer Posted / vivek chandrasekaran
If the file we are using is VSAm file then we can go for Key mentioned,
If it is a sequential file we have to read till the 49th record then needs to delete the 50th record, this is the main disadvantage with Sequential files.
Syntax for deleting record.
DELETE file_name RECORD
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the problem of ordered sequential files access?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the difference between Global and External Variables?
HOw can I get the negative sign while deduct high value from low value
Why did you choose to work with ibm mainframe cobol programming?
Give some examples of command terminators?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What are the pertinent COBOL
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Why would you use find and get rather than to obtain?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
how do you reference the fixed unblock file formats from cobol programs
What is the use of intialize verb?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com