I have two files , file1 is input file it contains
10,20,30,....,records
but i want to display the records in file 2 as reverse order
.how can we do by using jcl& cobol(dont use array)
please any one can tell me the answer

Answer Posted / vaneesh

We can sort the input file in descending order usign DFSORT

sort fields=(1,3,CH,D)

then simply read the sorted file in the program and display
it in the spool.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various section in data division and briefly explain them.

693


how do you reference the rrds file formats from cobol programs

792


What is cobol?

741


How many bytes S(8) comp field occupy and its maximum value?

1628


how to refer the data field?

1802






How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

715


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

1912


how to move the records from file to array table. give with code example

2216


Explain how you can characterize tables in cobol?

636


Write a program that uses move corresponding.

668


what is amode(24), amode(31), rmode(24) and rmode(any)?

692


Differentiate between structured cobol programming and object-oriented cobol programming.

663


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

1713


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


What is the Purpose of Pointer in the string?

641