I need to ask an IF statement about the first byte of a three byte chararcter field in RPG III. Can I accomplish this in one step or do I have to substring the field in the first spec and in the next statement ask the "IF".
Examples would help . Field name is GRPID. In cobol I could use reference modification and say:
If GRPID (1:1) = "M"
then do this
else take the day off
Thanks,
John
Examples would help . Field name is GRPID. In cobol I could use reference modification and say:
If GRPID (1:1) = "M"
then do this
else take the day off
Thanks,
John
Comment