This is an IBM RPG programming language examples repository
If you're using SEU, keep in mind that it does not behave well when you use full free-form syntax
- Show on screen the first N numbers, given an arbitrary N.
- Show on screen the SUM of the first N numbers, given an arbitrary N.
- Show on screen the factorial of an arbitrary number N.
- Show on screen the first N numbers of fibonacci sequence, given an arbitrary N.
- Given an arbitrary number (N) determine if it is even.
- Determine if a given number N is a multiple of another number M.
- Given two arbitrary numbers N and M, calculate N^M.
- Given an arbitrary number (N), get the binary representation of it.
- Given two arbitrary numbers, M and N, get the n-base representation of M
- Given an arbitrary number N, determine if it is a prime number.
- Show on screen all the even numbers from 1 to N, given an arbitrary N.
- Print on screen the first N prime numbers, given an arbitrary N.
- Given a date in YYYYMMDD format, parse it to DDMMYYYY format
- Read a file and show it's records on screen.
- Read a file and count the amount of records.
- Read a file and calculate the sum of one numeric field.
- Read a file and calculate the product of one numeric field.
- Read a file and calculate the average of one numeric field.
- Read a file and update one column on all the records.
- Read a file and update one column on one specific record, based on a given Key.
- Mass insert records on a file.
- TO DO
- TO DO