
RPG or RPGLE (RPG IV)?
You want a process to determine if the first 8 are numeric and the ninth is character?

I need to filter those values…
“Filter”? For what? Selection on a report? Displaying on a screen? Deleting from the file?
How do you want to “filter”? With SQL? In some RPG program logic?
Tom

I want to filter those records and write them to a work file. It is RPGLE.

Use scan opcode check for mismatched value and than XLATE it with the opcode you want in search string give 0 to 9 digits this will result in successful checking of all numeric values give it in the form ‘0123….9′ so as to make it character Coz your field is 10A

%XLATE(from:to:string{:startpos})

%CHECK might be useful
%CHECK compare-value : data-to-search { : start-position }
First position in the searched-data that contains a character not in the list of the characters in the compare value.
If %check(’1234567890′ : %SUBST(MYSTRING:1:8) ) = 0
AND %check(’ABCDEFGHIJKLMNOPQRSTUVWXYZ’ : %SUBST(MYSTRING:9:1) ) = 0

Please restate the question / What you have acheived. Show your code. What do you still need to do.
















