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 |
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
what are the error codes in cobol, db2, cics, vsam , and jcl
How to display the index.(displacement from an array)
What is level 66 used for ?
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?
can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans
Which Search verb is equivalent to PERFORM…VARYING?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
What is tne need to use sub programs in Cobol?
Name some of the examples of COBOl 11?
What are literals?