How to read the last 100 records from a COBOL file. The file
contains N number of records.
Answers were Sorted based on User's Feedback
Answer / guest1
Using FILE-AID, copy lost 100 records only in to a seperate
file and read the records.
| Is This Answer Correct ? | 1 Yes | 5 No |
What is the mode in which you will OPEN a file for writing?
If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?
Which Search verb is equivalent to PERFORM…VARYING?
What is the Importance of GLOBAL clause According to new standards of COBOL?
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??
What is SDSF?
i need a small 3d program using inline and outline.
can we redefine 77 level item is it possible
how many bytes does s9(7)COMP-3 field occupies?
what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
Please let me know at which Scenarios we will go for STATIC call or DYNAMIC