Actually, this is proably more what you had in mind:


break on


$EXTN = "PST"


if $EXTN = "PST"
$=execute("$$$EXTN"+"_SIZE=55")
endif


if vartypename($pst_size) = "long"
?"variable=" $pst_size
endif


exit 1

-Shawn

ok, you had something else in mind ?

This is similar to your orginal post without using execute ... it creates dynamic variables as well ... just not as dynamic as with the execute function ...


break on


$EXTN = "PST"


select


case $EXTN = "PST"


$PST_SIZE = 0


case $EXTN = "XXX"


$XXX_SIZE = 0


endselect


exit 1

The variables are created (declared) conditionally. But no matter how you slice it, there'll be a lot of conditional coding to make any strategy like this work ... what you want to do this for exactly ?

-Shawn

[ 03 December 2001: Message edited by: Shawn ]