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 are the different rules to perform a Search?

613


Why would you use find and get rather than to obtain?

681


What are the different rules for performing sort operation?

759


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5057


What is Pic 9v99 Indicates in COBOL?

722






if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

853


) How do u handle errors in BMS macro

1505


Give some examples of command terminators?

752


How are the next sentence and continue different from each other?

763


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5675


Write down the divisions of cobol program?

665


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

703


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

1715


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1953


Have you used comp and comp-3 in your project? And how?

2008