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 / mehak
open input file reversed
this will read file in reversed order
write 2 record
| Is This Answer Correct ? | 0 Yes | 0 No |
What are all the divisions of a COBOL program?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
Can we change the password using ALTER? anyone tried and changed?
how would find total records in files using seqientional
diffrence between renames and redifnes with examples
What is a subscript ?
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
can we redefine 77 level item is it possible
What is the difference between goback, stop run and exit program in cobol?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????