Page 1 of 1

Octal and Hex byte values in string literals

Posted: Wed Nov 23, 2005 7:05 am
by gsherry1
Hello Forum,

I wish to know if is possible to reference Octal and Hex byte codes in string literals?

For example:

if (In.StrFld = '\000\001')

This doesn't seem to work, as Len('\000\001') returns 8 rather than 2. The documentation does often use \DDD and \xDD notation but not in the context of string literals in derivations.

Thanks,

Greg

Posted: Wed Nov 23, 2005 7:11 am
by ArndW
I've found that different places in PX require different formats for just about everything. If this isn't a huge volume job, use CHAR(000) and CHAR(001) instead of the direct literal so that you can continue developing while perhaps waiting for the correct answer.

Posted: Wed Nov 23, 2005 8:57 am
by gsherry1
Thanks ArndW.

It interesting that Char seems to be the only conversion function that is available in PX jobs, but is not documented in the Parallel Job Developer's Guide.