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
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
what is an online rpg?
what is the use of sflnxtchg?
how do I preserve and clean the array?
is this a rpg channel?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
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?
how do you use commitment control in rpg?
what do you mean by an input subfile, what are the keywords required?
What is the purpose of record level identifier?
how does the rpg element work?
What are the types of identifiers?
How can we override a file during runtime in rpg?