How to sort an array in descending in RPG

Answer Posted / surya siram

While declaring the array in the rpgle program, use the key word "DESCEND" and then use the bif SORTA (Sort array) to sort the array in descending order.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Interviewer asked me write down DDS for load all subfile .can anybody write dds

1012


how can you display specific subfile page on the screen in unequal subfile?

671


what is a rpg?

696


what is the difference between do while and do until?

698


what do you mean by an input subfile, what are the keywords required?

766






thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1889


how do I declare a minor?

710


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

511


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

706


how do you use commitment control in rpg?

752


What is file identifier where we can use?

639


When it is desirable to describe files Internally?

1182


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

496


are there any useful c runtime apis that I can call from rpg iv?

696


how do I preserve and clean the array?

667