Mark Johnson wrote:

I'm not looking for a programming alternate or suggestions. Just a null
conversion.

I didn't invent this situation. It's just one of the zillions of examples
that I inherit with my client's systems.

Under certain circumstances, a single data field contains multiple types of
data. This may be dependent on another field.

Thus, code like this exists:

IF REC<5>="N" THEN
   PRINT OCONV(REC<6>,"MD2")
END ELSE
   PRINT REC<6>
END

Sometimes both have a conversion and I do this to save typing lines:
IF REC<5>="N" THEN CONV="MD2" ELSE CONV="D2/"
PRINT OCONV(REC<6>,CONV)
Why not save another line :(and a processor cycle or two not storing "CONV" ):
PRINT  OCONV( REC<6>, (IF REC<5>="N" THEN "MD2" ELSE "D2/" ) )

:^)

-- mats
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to