Tags:
Thanks! We'll email you
when relevant content is
added and updated.
Following
Follow
AS/400
Thanks! We'll email you
when relevant content is
added and updated.
Following
Follow
CL/400
Thanks! We'll email you
when relevant content is
added and updated.
Following
Follow
COBOL/400
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
Software/Hardware used:
AS400, CL400, COBOL400
ASKED:
April 26, 2011 10:10 AM
UPDATED:
May 2, 2011 10:48 PM
Discuss This Question: 8 Replies