Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
Answer Posted / mehak
open input file reversed
this will read file in reversed order
write 2 record
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you get the data to code the BMS macro?
What type of SDLC u followed? Why?
What are the access modes of START statement?
What are the cobol coding sheets?
What is link edit in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
how do you reference the fixed unblock file formats from cobol programs
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What are the rules of the move verb?
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.
What is the difference between PIC 9.99 and 9v99 in COBOL?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......