Product/components used and version/fix level:
Natural 9
Detailed explanation of the problem:
I’ve done a HISTOGRAM with a DISPLAY to overview a status field:
HD1. HISTOGRAM FILE-1 IN-STATUS
DISPLAY IN-STATUS *NUMBER *COUNTER
END-HISTOGRAM
EJECT
Output ( previously I used WRITE TITLE and WRITE TRAILER ) :
1SISTEM: SYSTEM-1 GOAL: GENERAL OVERVIEW OS STATUSES 20240215 16:24:19.0
-------------------------------------------------------------------------------
IN-STATUS NMBR CNT
--------- ----------- -----------
0E 97 1
F 299 2
J 1 3
N 3369 4
X 1 5
SERVICE: SERVICE-1 PAGE: 1
-------------------------------------------------------------------------------
Right after in the same program I did a FIND with another DISPLAY, to show some NOK fields according to business rules related to the status:
WRITE 'SAMPLE OF NOK RECORDS'
FD1. FIND(40) NOK-RECORDS WITH IN-STATUS NE 'F' AND IN-STATUS NE 'N'
IF NO RECORDS FOUND
COMPRESS DEBUG-INFO 'ZERO PROBLEMS IN FD1.' INTO DEBUG-INFO
END-NOREC
DISPLAY *ISN IN-STATUS DT-REC-STORE *COUNTER
END-FIND
Output:
SAMPLE OF NOK RECORDS
79 E 20220222 1
80 E 20220222 2
2934 E 20230922 3
2935 E 20230922 4
2936 E 20230922 5
2937 E 20230922 6
2938 E 20230922 7
...
1SISTEM: SYSTEM-1 GOAL: GENERAL OVERVIEW OS STATUSES 20240215 16:24:19.0
------------------------------------------------------------------------------
IN-STATUS NMBR CNT
--------- ----------- -----------
2954 E 20230922 23
2955 E 20230922 24
2956 E 20230922 25
2957 E 20230922 26
2958 E 20230922 27
2959 E 20230922 28
2960 E 20230922 29
2961 E 20230922 30
Finally I did a last DISPLAY to show execution details:
NEWPAGE
DISPLAY OPER-CONTROL(*) 4X EXEC-DATA(*)
Output:
1SISTEM: SYSTEM-1 GOAL: GENERAL OVERVIEW OS STATUSES 20240215 16:24:19.0
-------------------------------------------------------------------------------
IN-STATUS NMBR CNT
--------- ----------- -----------
TOTAL RECORDS 3143 START: 16/02/24 11:14:23
PROCESSED 0 END: 16/02/24 11:21:02
STORED 0 DURATION: 00:06:39.6
DISCARDED 0 ERROR? : NO
BUSINESS ERRORS 0
NOT FOUND 0
OBJ EXEC: PROGRAM PGM-1
ENVIRONM: DEV
VERS NAT: 09.01.02
I tryied NEWPAGE and EJECT but the headers of the first DISPLAY keep on appearing.
I wish I could see the proper headers in each DISPLAY command.
Any tip of how to override or reset the pages so that each DISPLAY could have its proper headers?
Thanks in advance.
Error messages / full error message screenshot / log file:
No errors, just page adjustments. I’ve searched in Natural documentation but didn’t found explanation.
Question related to a free trial, or to a production (customer) instance?
Production instance