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
What do you understand by psb and acb?
What are literals?
how to refer the data field?
What is the difference between perform … with test after and perform … with test before?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Write the code implementing the perform … varying.
What are declaratives and what are their uses in cobol?
how to move the records from file to array table. give with code example
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.
IF I mention stop run in CICS what happens?
What is length is cobol?
Which is not true about evaluate statement
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