Link to home
Create AccountLog in
Avatar of Glennikins
Glennikins

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Member_2_276102
Member_2_276102

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
Avatar of Glennikins

ASKER

I took a different aproach.  Thanks.