RPGLE strtok Example Needed

Hi,
I am looking for an example of the C function strtok for RPGLE. I need to remove punctuation from a field.  I would like to make the function as a /Copy book.

Thanks,
Glenn
GlennikinsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tliottaCommented:
One of the best entry points into discussion of strtok() particularly as it relates to RPG can be found here:

"My advice to you:  Never use strtok() in an RPG program."

Read the item at that link and consider the RPG code provided there. Other forward and backward links from there can help fill in peripheral details if needed.

Tom
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tliottaCommented:
If you really really need strtok() in RPG, though, I think I can provide an example. I know I worked with it a few years ago -- before I discarded the thought and went in a different direction. It doesn't translate well into a RPG paradigm even though it works just like it does in C. It just takes some extra code to expose what's really going on.

Tom
0
GlennikinsAuthor Commented:
I took a different aproach.  Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM System i

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.