Page 1 of 1

Stage Variable Maximum Length

Posted: Mon Feb 13, 2006 8:04 am
by patonp
A couple of simple questions...

Is there a maximum length for stage variables? How about variables used within routines?

Thanks!

Peter

Posted: Mon Feb 13, 2006 8:25 am
by ArndW
I seem to recall that the length can be quite long, but only the first 32 characters are used to differentiate.

Posted: Mon Feb 13, 2006 8:27 am
by patonp
Does this mean that if I compare two different stage variables that are 40 characters long, only the first 32 characters will actually be used in the comparison?

Posted: Mon Feb 13, 2006 8:30 am
by chulett
I'm guessing that Arnd meant the name of the stage variable.

Posted: Mon Feb 13, 2006 8:35 am
by patonp
OK - My question is actually about the maximum length of the value that may be stored in a variable.

Posted: Mon Feb 13, 2006 8:43 am
by ArndW
To answer the question you didn't ask - it's something 63 significant characters to the variable name.

To answer your real question :)

You can keep on adding length to DataStage variables until you run out of virtual process memory. The space is not allocated contiguously, either.

Posted: Mon Feb 13, 2006 8:46 am
by patonp
Great! Thanks to both of you for the quick response!