One thing I really dislike about functions... and Ed will appreciate this...

You can use them (like this example) in a condition. See! How horrible is that?

Oh-oh-darlk-30 is I believe a suitable expression. 30 lines before the S0C7 is 
"IF FUNCTION NUMVAL-C(WSVAR97)=4" and you need to know the outcome of that. 
Begin... Oh, did I mention, that whatever the outcome of the IF, there is 
INITIALIZE WSVAR97? Anyway, the point is not to know where the source data is 
(I can make the IF more complex to make it much more difficult) it is that... 
how do you know? The result of the function in a condition is ephemeral (yes, 
there's a reason I've put it 30 lines away).

Of course, you could MOVE/COMPUTE the FUNCTION such that the value is stored in 
its own field (and hopefully not "named" WSVAR147) but my experience is that 
those "from other languages" don't tend to want to do that. Put 'em all on 
Overnight Call, get 'em a bit o' larnin', quicktime.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to