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
Which mode is used to operate the sequential file?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are all the divisions of a COBOL program?
how do you reference the rrds file formats from cobol programs
How do you reference the following file formats from cobol programs?
how do you reference the ksds vsam file formats from cobol programs
What is the problem of ordered sequential files access?
What are literals?
What are 77 levels used for?
how do you reference the esds vsam file formats from cobol programs
how do you reference the fixed unblock file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.
What kind of error is trapped by on size error option?
Write the code implementing the perform … varying.