Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Does anyone know off hand, what determines space requirements of fields on a screen?
More specifically, space required between displayed values (constants,fields) and does it change
when using the COLOR keyword as opposed to the DSPATR keyword? I am referring to the beggining attribute byte and trailing attribute byte of fields. TIA
All fields require one space between them and the next field.
This position is used for the attribute byte. So a +1 in DDS will insure that it compiles, whereas an RPG output spec-style +0 will never compile.
There are times when you need two spaces between fields.
A field with CNTFLD keyword specified needs two spaces before it in order for it to function properly. There are also other keywords that require two spaces, like SNGCHCFLD and MLTCHCFLD..
And there is no difference between color and monochrome; just changes how it's rendered.
Plus what Fisher said.
Yes, position (1,1) on the display cannot be written to. It is blocked. But a field's attribute may appear there.