Page 1 of 1

Parsing Raws to extract values

Posted: Thu Nov 17, 2005 4:08 pm
by gsherry1
Hello Forum,

Is there any method of checking raw values or selecting a substring from them without first using the modify stage to change the column definition?

Thanks,

Greg

Posted: Thu Nov 17, 2005 9:12 pm
by ray.wurlod
Possibly. What do you mean by "checking"?

Posted: Fri Nov 18, 2005 8:11 am
by gsherry1
I want to certain a certain range of bytes against a string constanst.

For Example,
if (link1.rawfld[1,6] = "String") then
parse rest of raw field
I wish to declare this field as raw because I want to use the ebcdic attribute on the schema, to allow string comparisons to automatically treat the bytes as ebcdic text. By declaring the field as string, will cause my output to be manipulated if DS encounters any byte values in the string field that are not considered valid ebcdic text (0x0a for example).