Parsing Raws to extract values

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Parsing Raws to extract values

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Possibly. What do you mean by "checking"?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Post 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).
Post Reply