Newbie to the forum here. I'm looking forward to learning from everyone here.
I'm working in Developers Studio 7.1.
I need to write a define based on characters in a string of data within our Item Numbers.
ex: item = 3J9B051101
ex: item = 3J9C051102
I need to pull out the 3rd and 4th caracter and say:
If that equals 9B then Chemical
If that equals 9C then Industrial
I'm able to pull out the two fields using SBSTR, but I can't build a define off a define.
There must be a better way?
Thanks in advance for any help anyone can provide.
I'm working in Developers Studio 7.1.
I need to write a define based on characters in a string of data within our Item Numbers.
ex: item = 3J9B051101
ex: item = 3J9C051102
I need to pull out the 3rd and 4th caracter and say:
If that equals 9B then Chemical
If that equals 9C then Industrial
I'm able to pull out the two fields using SBSTR, but I can't build a define off a define.
There must be a better way?
Thanks in advance for any help anyone can provide.