Prino's earlier comment applies
[quote]And doubtlessly you put it into the correct profile variable in the correct profile?[/quote]
Many products use an application ID to have separate set of variables from each other, in order to avoid collisions in use of variable names.
Start file-aid using ISPF option 7, then use DTEST 3 command to examine profile variables. Look for ZAPPLID. Your exec has to also be invoked in that same applid or your variable will be saved in the wrong place.
note to moderator: whats up with quote tags not working?