This is my last ditch effort before I rewrite my code to use separate members (which I have done before and it works great).
I had to enhance an existing program that takes two files created using WRKQRY to fill a third file using an RPG program. Several users use these files. In the past they have had to just be careful to run their queries when no one else was using them. They used option 2=Replace member. I rewrote the logic to have them create batches noted by a specified batch name instead. They would run their queries to fill the work files adding their batch name and using Add to member. We are now running into a problem where the calculated amount field will not map to the work file. Attached are the work file and query definitions. If anyone has any ideas, I'd be glad to give them a try. Otherwise....back to my original plan of allowing them to use different members. I have tried defning the MOCPO field as DECIMAL(17,5) and also as FLOAT. I have also tried creating the file using SQL (my preferred way) and DDS.
I had to enhance an existing program that takes two files created using WRKQRY to fill a third file using an RPG program. Several users use these files. In the past they have had to just be careful to run their queries when no one else was using them. They used option 2=Replace member. I rewrote the logic to have them create batches noted by a specified batch name instead. They would run their queries to fill the work files adding their batch name and using Add to member. We are now running into a problem where the calculated amount field will not map to the work file. Attached are the work file and query definitions. If anyone has any ideas, I'd be glad to give them a try. Otherwise....back to my original plan of allowing them to use different members. I have tried defning the MOCPO field as DECIMAL(17,5) and also as FLOAT. I have also tried creating the file using SQL (my preferred way) and DDS.
Comment