I am getting the following error when executing PCML com.ibm.as400.data.PcmlException: Value is not set. Processing element 'getWhsePGM.CountStru.WhseCount'. I want the RPG program to return back a set of records by reading a file. At the time of execution I will not know how many records the program will return back. Hence I created a structure that would return back the numeric values of the records read. com.ibm.as400.data.PcmlException: Value is not set. Processing element 'getWhsePGM.CountStru.WhseCount'. The following is the PCML source file.