I had 100 records and i want to execute last three records by
using cobol programming?what will be coding?
Answer Posted / harsha
Read file sequentially and load it in table. keep check on
the number of ocurances(i.e. number of records).
Once the table is fully loaded, you know the total
occurances. Say it is X. Now read the table with occurance
X-3
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain how you can characterize tables in cobol?
Are you comfortable in cobol or jcl?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the difference between comp and comp-3?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How arrays can be defined in COBOL?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are different data types in cobol?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What are all the divisions of a COBOL program?
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?
Why occurs cannot be used in 01 level in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?