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 do you understand by psb and acb?

665


What are literals?

632


how to refer the data field?

1812


What is the difference between perform … with test after and perform … with test before?

883


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825






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

1906


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

679


Write the code implementing the perform … varying.

646


What are declaratives and what are their uses in cobol?

714


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

2219


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.

2058


IF I mention stop run in CICS what happens?

1896


What is length is cobol?

650


Which is not true about evaluate statement

1584


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2116