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
how does the rpg element work?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what is the difference between do while and do until?
What is a record lock error?
How Chain operation copies the record's data to the input buffer for the program?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
do you use message subfiles? What are the necessary keywords required coding a message subfile?
how do I declare a table or array in rpg iv?
what is data area and how it is used in rpg program ?
how do I play {insert rpg system here}?
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
how can I tell when to replace the array?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg