2023-05-03 11:06:20 +02:00
== Why is this an issue?
2021-04-28 16:49:39 +02:00
The ``++/EJECT++`` compiler directive adds a page break when the code is printed, and should be used at the end of each ``++F++``, ``++D++``, and ``++C++`` specification section to make the structure of the code clearer and to enhance overall readability.
2021-04-28 18:08:03 +02:00
2023-05-03 11:06:20 +02:00
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,rpg]
2021-04-28 16:49:39 +02:00
----
F* Conversion Job Activity File (CV)
F*
FCVJBAVP IF E K DISK
F* Conversion Job Dependency File (CZ)
F*
FCVJBDPP IF E K DISK
F*
DP0RTCD S 1
DP0JBNM S 10A
DP0ERMG S 100A
DK0JBNM S LIKE(CVJBNM)
DK1JBNM S LIKE(CVJBNM)
DJST S 10A DIM(10)
DI S 3 0 INZ
C
C EXSR SR999
C
C EXSR SR100
----
2021-04-28 18:08:03 +02:00
2023-05-03 11:06:20 +02:00
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,rpg]
2021-04-28 16:49:39 +02:00
----
F* Conversion Job Activity File (CV)
F*
FCVJBAVP IF E K DISK
F* Conversion Job Dependency File (CZ)
F*
FCVJBDPP IF E K DISK
F*
F/EJECT
DP0RTCD S 1
DP0JBNM S 10A
DP0ERMG S 100A
DK0JBNM S LIKE(CVJBNM)
DK1JBNM S LIKE(CVJBNM)
DJST S 10A DIM(10)
DI S 3 0 INZ
D/EJECT
C
C EXSR SR999
C
C EXSR SR100
C/EJECT
----
2021-04-28 18:08:03 +02:00
2021-09-20 15:38:42 +02:00
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
2023-05-25 14:18:12 +02:00
=== Message
Add an "/EJECT" statement at the end of this "X" specification section
2021-09-20 15:38:42 +02:00
endif::env-github,rspecator-view[]