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


Please Help Members By Posting Answers For Below Questions

Why occurs cannot be used in 01 level in COBOL?

721


How you can characterize tables in cobol?

723


Give some examples of command terminators?

761


What is difference between static and dynamic call in cobol?

781


Which mode is used to operate the sequential file?

671






How you can read the file from bottom?

660


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


What are 77 levels used for?

661


What are the different rules to perform a Search?

619


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


What is the difference between Call and a Link?

702


explain sorting techniques in cobol program?

692


What is the difference between goback, stop run and exit program in cobol?

932


What is length is cobol?

652


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714