I am working on a requirement where in I need to find the numerical difference between two character strings. The two strings are 8 character long and can have spaces as values. The two strings are "from" and "to" fields. I will have to find out the last value used and then subtract it from the "to" field to get the remaining combinations possible.
For example From String = "0000" (8 Characters possible) To Strings = "4999R00" (8 Characters possible) Last Value used = "4999RZZ" Remaining combinations possible = 1 (4999R00)
I need to find the "Remaining combinations possible" value. I have taken this example just to show the conditions. I need to accomplish this either through CL400 or COBOL400 in AS400. Can anyone help me on this?
Thanks and Regards Sandeep
AS400, CL400, COBOL400
April 26, 2011 10:10 AM
May 2, 2011 10:48 PM