We use code of the form: WorkArea DSECT WORD DS F FOO DS X BAR DS Y WorkLen EQU *-WorkArea DS (&WORKL-WorkLen)XIf WorkLen exceeds &WORKL, the final DS will have a negative length and therefore generate an assembly time error.
Thanks for all the answers so far. I'll have to think how some of them may help me to find a solution that will issue an MNOTE, not an assemlby error because of some statements like the above DS instruction.
Its not about "pretty" versus "ugly" code; its because this question now challenges me. -- Peter Hunkeler
