Ask the Experts

Ask the Experts

iSeries application development

  • Variable-length fields in RPG IV

    One user writes, "Is there a way to utilize variable-length fields in RPG IV? We do not use free form yet." Application development expert John Blenkinsop responds.  Continue Reading

  • Using 15,000 line RPG programs

    Ine user writes, "I have a strange problem with a 15000 line RPG program in which all of the 99 indicators are used. I need at least one more indicator to use in the display file the program uses. I need to use that one in the display ...  Continue Reading

  • How to find out if there is a binding directory available

    One user writes, "Our company has many ILE programs that may or may not be created by using a binding directory. When I have changed a module within a program, how can I find out if there is a binding directory available to rebind (CRTPGM) for this ...  Continue Reading

  • Problems converting a FLOAT8 field

    I am trying to convert a FLOAT8 field to a 17 6 packed and the results are showing a reduction of 1/100000th in value. This is causing a tax calculation to be off by pennies. What can I do?  Continue Reading

  • Read records on a subfile

    One user writes, "How can I read all records on a subfile? Using READC opcode, one can read only the changed records. I have been working with the SFLNXTCHG keyword but without success. A simple example illustrating the subfile DDS, as well as the ...  Continue Reading

  • RPG-free routine to calculate dates

    One user writes, "I thought that I saw somewhere an RPG-free routine using %DATE (bif) to calculate the day of the week. For example, MON, TUE, etc.? I need to place the day on a screen." Development expert John Blenkinsop responds.  Continue Reading