I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answer Posted / seema dawlekar
This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50
this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order
correct me if I am wrong
Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Why occurs cannot be used in 01 level in COBOL?
How you can characterize tables in cobol?
Give some examples of command terminators?
What is difference between static and dynamic call in cobol?
Which mode is used to operate the sequential file?
How you can read the file from bottom?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are 77 levels used for?
What are the different rules to perform a Search?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between Call and a Link?
explain sorting techniques in cobol program?
What is the difference between goback, stop run and exit program in cobol?
What is length is cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?