How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one
Answer Posted / sreejith
sort the file firt in decending order
and then read sequentially
| Is This Answer Correct ? | 12 Yes | 10 No |
Post New Answer View All Answers
How do you define a variable of comp-1 and comp-2?
What is the difference between comp and comp-3?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
what is the use of outrecord?
What is amode(31)
Whats the difference between search & search ALL?
What is a scope terminator give example?
What guidelines should be followed to write a structured cobol prgm?
What is perform what is varying?
) How do u handle errors in BMS macro
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
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 ......
Write the code to count the sum of n natural numbers.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What kind of error is trapped by on size error option?