wirte a pgm in using files in which we hav 10 ,20,30 40...100
records in inputfile and i want them to be send to outputfile
in reverse order.
PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

Answer Posted / binary logics

*hival setgt pfrec
90 doueq *on 90 is a indicator for End of file
readp pfrec
write newpfrec
enddo

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol? Could we utilize a similar copybook?

722


Can you please let me know the centre name of INS certification in Kolkata.

1719


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1953


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2064






i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1000


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

646


What is length is cobol?

652


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5381


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 ......

10657


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1916


HOw can I get the negative sign while deduct high value from low value

1797


What are the different data types in cobol?

801


) How do u handle errors in BMS macro?

1433


Why occurs cannot be used in 01 level in COBOL?

722