Error UGENERR_BATCH_ONLY
Author: i2stiller@gmx.de (istiller)
What does the error <UGENERR_BATCH_ONLY> mean? As the name suggest, something could only be executed in batch. On the other hand, look at the description, I found this: "Statement not allowed in batch mode. Use a test on $batch to avoid this." This is not "BATCH_ONLY", but "NOT_IN_BATCH". So, what does the error <UGENERR_BATCH_ONLY> mean? :-) Ingo
3 Comments
Local Administrator
Uniface generic error only within batch mode? I.e. its a generic error which only occurs (is an error) when in batch mode?
Author: Iain Sharp (i.sharp@pcisystems.co.uk)
Local Administrator
:-(
Author: Theo Neeskens (tneeskens@itblockz.nl)
Local Administrator
This could be an explanation :-) Background why I did ask: We uses some components in interactive and batch mode. I try to "reuse" UnifAce error number if something is happening in a this components Example -2 (UIOSERR_OCC_NOT_FOUND) for "X not found" or -303 (UVALERR_KEY_EMPTY) if some "key"-data is missing If there is an ASMKESSS,EDIT, ... and the component is in batch-mode, I like to return "NOT_IN_BATCH" So the question is, if UGENERR_BATCH_ONLY does have this meaning :-) Maybe should I rename UGENERR_BATCH_ONLY to UGENERR_NOT_IN_BATCH #define UGENERR_NOT_IN_BATCH <UGENERR_BATCH_ONLY> So my colleagues will not get confused by the name :-) Ingo
Author: istiller (i2stiller@gmx.de)