Hello,
I'm trying to create print file that ends up in spool.
The problem is that if the field or constant is eq *blank, it is not 'displayed'. The next line field's value can be seen in that line instead.
For example:
When the report is generated the constant from line 2 is ignored.
Moreover if ZBA7TX is *BLANK, the ZBBETX value appears in line 2 instead of 4. What I want is to display ZBA7TX in line 3 (leave empty line if *blank) and ZBBETX in line 4.
I tried to define line number for each field as well as using SPACEA, SPACEB etc. but with no result.
Is there any way to keep the fixed report layout?
Maybe it's not a DDS but compiler option that allows to keep blanks on report?
I'm trying to create print file that ends up in spool.
The problem is that if the field or constant is eq *blank, it is not 'displayed'. The next line field's value can be seen in that line instead.
For example:
When the report is generated the constant from line 2 is ignored.
Moreover if ZBA7TX is *BLANK, the ZBBETX value appears in line 2 instead of 4. What I want is to display ZBA7TX in line 3 (leave empty line if *blank) and ZBBETX in line 4.
PHP Code:
A R ZAPAGHDR TEXT('Standard report header')
*.........................................................................
* Screen title
A 1 43'Print test'
A ZAUSR 10 1 81TEXT('*USER')
A 1 92DATE
A EDTWRD(' / / ')
A 1101TIME
A EDTWRD('0 : : ')
A 1110'Page'
A 1116PAGNBR
A EDTCDE(3)
*.........................................................................
* Fields from top of page format
A 2 2' '
* FUN Part no Alpha
A ZBA7TX 17 3 2TEXT('FUN Part no Alpha')
* Name
A ZBBETX 25 4 2TEXT('Name')
* Name
A 4 30'Text'
I tried to define line number for each field as well as using SPACEA, SPACEB etc. but with no result.
Is there any way to keep the fixed report layout?
Maybe it's not a DDS but compiler option that allows to keep blanks on report?
Comment